EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1317 background imageLoading...
Page #1317 background image
Appendix C: Macros — Character Classification / Conversion
1275
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
isalnum
Declaration:
BYTE
isalnum
(BYTE
c
)
Category(ies):
Character Classification / Conversion
Description:
Return non-zero (true) if the given character is alpha-numeric.
Inputs:
c
Character to test.
Outputs:
Non-zero if
c
is alpha-numeric, zero otherwise.
Assumptions:
Access_AMS_Global_Variables is defined.
Side Effects:
None
Availability:
AMS 2.00 or above.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: isalpha, isdigit
Example:
This example function returns 0 . . . 8 if passed the digits ‘1’ . . . ’9’ and
9 . . . 34 if passed ‘A’ . . . ’Z’ or ‘a’ . . . ’z’; all other characters return -1.
Note that the
isascii
function prevents any of the international alphabetical
characters from being used.
SINT SubChar2I( SINT c )
{ Access_AMS_Global_Variables;
if (isascii(c)) {
c = toupper(c);
if (isalnum(c) && c != '0')
return( ((c < 'A') ? (c - '1') : (c - ('0' + 'A'-'9'))) );
}
return -1;
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals