ctype macros

This library has its roots in the ANSI library, and does not really fit the rest of the libraries. However, we have included it because the tables are already present in the library anyway (used by "str" library).

query macros

isalpha(c)
TRUE if c is alpha
isupper(c)
TRUE if c is upper case
islower(c)
TRUE if c is lower case
isdigit(c)
TRUE if c is a digit (0 to 9)
isxdigit(c)
TRUE if c is a hexadecimal digit (0 to 9, A to F,a to f)
isspace(c)
TRUE if c is white space
ispunct(c)
TRUE if c is punctuation
isalnum(c)
TRUE if c is alpha or digit
isprint(c)
TRUE if c is printable (including blank)
iscntrl(c)
TRUE if c is control character

conversion macros

toupper(c)
convert the character to upper case NOTE : some characters in the standard character set only have a lowercase variant. These will remain lowercase.
tolower(c)
convert the character to lower case

PROGS, Professional & Graphical Software
last edited December 5, 1995