1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7 // Provides functions for determining the locale-dependent type of a character,
8 // plus locale-aware uppercase / lowercase conversions. (See also locale.h.)
9 // ----------------------------------------------------------------------------
12 #define __CTYPE_H __CTYPE_H
14 // ----------------------------------------------------------------------------
17 // returns nonzero if c is alphanumeric in the locale.
20 // returns nonzero if c is alphabetic character in the locale.
23 // returns nonzero if c is a horizontal blank in the locale.
26 // returns nonzero if c is a control character in the locale.
29 // returns nonzero if c is a digit in the locale.
32 // returns nonzero if c is alphanumeric or a punctuation in the locale.
35 // returns nonzero if c is a lowercase alphabetic character in the locale.
38 // returns nonzero if c is a printable character ( isgraph( ) or isblank( ) ) in
42 // returns nonzero if c is a punctuation in the locale.
45 // returns nonzero if c is a whitespace in the locale.
48 // returns nonzero if c is an uppercase alphabetical character in the locale.
51 // returns nonzero if c is a hexedecimal digit in the locale.
52 int isxdigit( int c );
54 // returns lowercase equivalent for c in locale.
57 // returns uppercase equivalent for c in locale.