Cold Help System: Programming: ColdC Reference Manual: Functions: String: strcmp()


INTEGER strcmp(STRING str1, STRING str2)

This function compares str1 against str2 and returns zero if they are equal, greater than zero if string1 is lexically greater than string2, and less than zero if string1 is lexically less than string2. The comparison performed by strcmp() is case-sensitive. Examples:

strcmp("Foo", "bar")
=> -28
strcmp("cashmir", "cashmiR")
=> 32
strcmp("foo", "foo")
=> 0


crypt() | explode() | lowercase() | match_begin() | match_pattern() | match_regexp() | match_template() | pad() | regexp() | strcmp() | strfmt() | strgraft() | strlen() | strsed() | strsub() | substr() | uppercase() | match_crypted() | split() | stridx()


the Cold Dark