User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
656
C Type Library
The mikroPascal PRO for dsPIC30/33 and PIC24 provides a set of library functions for testing and mapping
characters.
Library Functions
- isalnum
- isalpha
- iscntrl
- isdigit
- isgraph
- islower
- ispunct
- isspace
- isupper
- isxdigit
- toupper
- tolower
isalnum
Prototype
function isalnum(character : byte) : word
Description Function returns 0xFF if the character is alphanumeric (A-Z, a-z, 0-9), otherwise returns zero.
Example
res := isalnum(‘o’); // returns 0xFF
res := isalnum(‘\r’); // returns 0
isalpha
Prototype
function isalpha(character : byte) : word
Description Function returns 0xFF if the character is alphabetic (A-Z, a-z), otherwise returns zero.
Example
res := isalpha(‘A’); // returns 0xFF
res := isalpha(‘1’); // returns 0
iscntrl
Prototype
function iscntrl(character : byte) : word
Description Function returns 0xFF if the character is a control or delete character(decimal 0-31 and 127),
otherwise returns zero.
Example
res := iscntrl(‘\r’); // returns 0xFF
res := iscntrl(‘o’); // returns 0