Stricmp - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

994

stricmp

Declaration:
int stricmp (const char * s1 , const char * s2 )
Category(ies):
Strings
Description:
This is a case insensitive version of strcmp.
Inputs:
s1 — Character string.
s2 — Character string.
Outputs:
Ignoring the case of the letters, returns zero if the strings are identical, a
positive number if the string pointed to by s1 is greater than the string
pointed to by s2 , or a negative number if the string pointed to by s1 is less
than the string pointed to by s2 .
If the strings differ, the value of the first nonmatching character in s2
subtracted from the corresponding character in s1 is returned. The
subtraction casts the input strings to unsigned chars so that the characters
in the range 128 . . . 255 are considered above the characters in the range
0 . . . 127.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
None
Differences:
See Also:
strcmp, strncmp, memcmp
Example:
/* Return TRUE if strPtr points to the string "all" regardless of case */
if (stricmp((strPtr, "all") == 0)
return TRUE;
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Strings
Not for Distribution
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents