Isalpha - Texas Instruments TI-89 Developer's Manual

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

Advertisement

1276

isalpha

Declaration:
BYTE isalpha (BYTE c )
Category(ies):
Character Classification / Conversion
Description:
Return non-zero (true) if the given character is alphabetic (A . . . Z, and all
of the international alphabetic characters).
c
Inputs:
Non-zero if c is alphabetic, zero otherwise.
Outputs:
Assumptions:
Access_AMS_Global_Variables is defined.
Side Effects:
None
AMS 2.00 or above.
Availability:
TI-89 / TI-92 Plus
Differences:
None
See Also:
isalnum
Example:
This example function converts a symbol name into tokenized format and
stores it in TokName. IT DOES NOT HANDLE RESERVED NAMES!
TokName must point to a buffer of MAX_SYM_LEN bytes, the tokenized
named is stored there starting at the end of the buffer.
BYTE *StrToTokN( BYTE *StrSymName, BYTE *TokName )
{
Access_AMS_Global_Variables;
BYTE c, *TokPtr = TokName+MAX_SYM_LEN;
c = tolower(*StrSymName);
if ((*StrSymName+1) == '\0' && isalpha(c) && isascii(c))
*TokPtr = ENCODE_LETTER(*StrSymName);
else {
TokPtr -= (short) (strlen((char *) StrSymName) + 2);
*TokPtr++= '\0';
strcpy( (char *) TokPtr, (char *) StrSymName );
}
return TokName + (MAX_SYM_LEN - 1);
}
TI-89 / TI-92 Plus Developer Guide
Appendix C: Macros — Character Classification / Conversion
— Character to test.
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