Appendix A: System Routines — Strings
973
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
cmpstri
Declaration:
int
cmpstri
(unsigned char *
s
, unsigned char *
t
)
Category(ies):
Strings
Description:
Performs a case-insensitive string comparison.
Inputs:
s
— A pointer to a null terminated string.
t
— A pointer to a null terminated string.
Outputs:
<0
—
Indicates string
s
“is less than” string
t
.
0 — Indicates string
s
“is identical to” string
t
.
>0 — Indicates string
s
“is greater than” string
t
.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
If s1 is a pointer to the string “aBcDe”, and s2 is a pointer to the string “AbzdE”, then
r = cmpstri (s1, s2);
will return a negative value in r to indicate that string s1 “is less than” string s2.