NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int strcmp ( const string &  str1,
const string &  str2 
)
inline

Compare two strings.

Compares the string str1 to the string str2.

Parameters
str1A string to be compared.
str2A string to be compared.
Returns
Returns an integral value indicating the relationship between the strings. A zero value indicates that both strings are 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.
Examples:
ex_strcmp.nxc.