standard.C.string.strcmp

strcmp is available since version 1.0.

Prototype:

number strcmp(string string1, string string2)

Parameters

string1
Null-terminated string to compare.
string2
Null-terminated string to compare.

Description:

Compare strings. The strcmp function compares string1 and string2 lexicographically and returns a value indicating their relationship.

Return value:

The return value for each of these functions indicates the lexicographic relation of string1 to string2. Value Relationship of string1 to string2 < 0 string1 less than string2 0 string1 identical to string2 > 0 string1 greater than string2