contents   index   previous   next



Clib.strcmp()

syntax:

Clib.strcmp(str1, str2)

where:

str1 - first string to compare.

 

str2 - second string to compare

 

return:

number - negative, zero, or positive according to the following rules:

 

< 0 if str1 is less than str2

= 0 if str1 is the same as str2

> 0 if str1 is greater than str2

description:

This method does a casesensitive comparison of the characters of str1 with str2 until there is a mismatch or a terminating null byte is reached.

 

see:

Clib.strcmpi(), Clib.stricmp(), ==, ===

 

 


Clib.strcmpi()