A SERVICE OF

logo

Chapter 4 Details of Crypto-C Functions 347
T_strcmp
T_strcmp
Description
T_strlen compares two strings. The return value indicates the lexicographic relation
of
string1
to
string2
.
Return Value
int T_strcmp (
const char *string1, /* first string */
const char *string2 /* second string */
);
Value Relationship of string1 to string2
< 0
string1
is less than
string2
0
string1
is identical to
string2
> 0
string1
is greater than
string2