CARM User's Guide

Discontinued

Character Routines

RoutineAttributesDescription
isalnumreentrantTests for an alphanumeric character.
isalphareentrantTests for an alphabetic character.
iscntrlreentrantTests for a Control character.
isdigitreentrantTests for a decimal digit.
isgraphreentrantTests for a printable character with the exception of space.
islowerreentrantTests for a lowercase alphabetic character.
isprintreentrantTests for a printable character.
ispunctreentrantTests for a punctuation character.
isspacereentrantTests for a whitespace character.
isupperreentrantTests for an uppercase alphabetic character.
isxdigitreentrantTests for a hexadecimal digit.
toasciireentrantConverts a character to an ASCII code.
tointreentrantConverts a hexadecimal digit to a decimal value.
tolowerreentrantTests a character and converts it to lowercase if it is uppercase.
_tolowerreentrantUnconditionally converts a character to lowercase.
toupperreentrantTests a character and converts it to uppercase if it is lowercase.
_toupperreentrantUnconditionally converts a character to uppercase.

The character routines allow you to test individual characters for a variety of attributes and convert characters to different formats.

The _tolower, _toupper, and toascii routines are implemented as macros. All other routines are implemented as functions. All macro definitions and function prototypes are found in the ctype.h include file.