LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

missing terminating null in string argument with fopen

Hello,

 

I have a fatal run-time error when I use fopen.

I put the file that I want to open in the project directory but I have : Missing terminating null in string argument !!!

 

Please help,

 

thanks

0 Kudos
Message 1 of 2
(3,401 Views)

Hello,

 

how did you generate the file name? The error implies that it is not null terminated... so you might want to add '\0' to it. 

In C, a string is a character sequence terminated with a null character.

0 Kudos
Message 2 of 2
(3,398 Views)