7.4 Character handling <ctype.h>
- 7.4.1 Character classification functions
- 7.4.1.1 The isalnum function
- 7.4.1.2 The isalpha function
- 7.4.1.3 The isblank function
- 7.4.1.4 The iscntrl function
- 7.4.1.5 The isdigit function
- 7.4.1.6 The isgraph function
- 7.4.1.7 The islower function
- 7.4.1.8 The isprint function
- 7.4.1.9 The ispunct function
- 7.4.1.10 The isspace function
- 7.4.1.11 The isupper function
- 7.4.1.12 The isxdigit function
- 7.4.2 Character case mapping functions
The header <ctype.h> declares several functions useful for classifying and mapping characters.[1] In all cases the argument is an int, the value of which shall be representable as an unsigned char or shall equal the value of the macro EOF. If the argument has any other value, the behavior is undefined.
The behavior of these functions is affected by the current locale. Those functions that have locale-specific aspects only when not in the “C” locale are noted below.
The term printing character refers to a member of a locale-specific set of characters, each of which occupies one printing position on a display device; the term control character refers to a member of a locale-specific set of characters that are not printing characters.[2] All letters and digits are printing characters.
Forward References
Footnotes