stcmpr()

Compares two strings.

Syntax

mint stcmpr(char *s1, char *s2);
  1. s1 is a pointer to the first null-terminated string.
  2. s2 is a pointer to the second null-terminated string.
  3. s1 is greater than s2 when s1 appears after s2 in the ASCII collation sequence.

Returns

Table 1. Return codes
Code Description
0 The two strings are identical.
<0 The first string is less than the second string.
>0 The first string is greater than the second string.