Link to this page
Print this page
Parent topic
:
C API functions
C-Extensions
/
C API functions
stcmpr()
Compares two strings.
Syntax
mint stcmpr(char *
s1
, char *
s2
);
s1
is a pointer to the first null-terminated string.
s2
is a pointer to the second null-terminated string.
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.