LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems: strnicmp

Trying to compile the expression (LabWindows/CVI Ver. 6.0):
strnicmp ("abcdef", "abcdef", 6)
I get the compiler error:
Too many arguments to 'strnicmp'.

However, I have no problems compiling:
strncmp ("abcdef", "abcdef", 6)

NI ... any comments?


Kind regards
Martin Trock
0 Kudos
Message 1 of 2
(2,690 Views)
Martin,

This is a known issue that will get fixed in the next release of CVI. In the meantime, open your cvi/include/ansi/string.h file and modify the prototype for strnicmp to be

int CVIANSI strnicmp(const char *, const char *, size_t);

This should solve the compiler error.

Regards,
Azucena
NI
0 Kudos
Message 2 of 2
(2,690 Views)