NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int strncmp ( const string &  str1,
const string &  str2,
unsigned int  num 

Compare characters of two strings.

Compares up to num characters of the string str1 to those of the string str2.

str1A string to be compared.
str2A string to be compared.
numThe maximum number of characters to be compared.
Returns an integral value indicating the relationship between the strings. A zero value indicates that the characters compared in both strings are all equal. A value greater than zero indicates that the first character that does not match has a greater value in str1 than in str2. A value less than zero indicates the opposite.