Concept Framework 2.0 documentation Contents | Index

standard.C.string.strcmp

Name Version Deprecated
strcmp version 1.0 no

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.

Returns:
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

Documented by Eduard Suica, generation time: Fri Jan 21 18:06:20 2011 GMT(c)2011 RadGs Software