]> pd.if.org Git - pdclib/blob - includes/ctype.h
Initial load with header templates and some first declarations.
[pdclib] / includes / ctype.h
1 // ----------------------------------------------------------------------------
2 // $Id$
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 // ----------------------------------------------------------------------------
10
11 #ifndef __CTYPE_H
12 #define __CTYPE_H __CTYPE_H
13
14 // ----------------------------------------------------------------------------
15 // FUNCTIONS
16
17 // returns nonzero if c is alphanumeric in the locale.
18 int isalnum( int c );
19
20 // returns nonzero if c is alphabetic character in the locale.
21 int isalpha( int c );
22
23 // returns nonzero if c is a horizontal blank in the locale.
24 int isblank( int c );
25
26 // returns nonzero if c is a control character in the locale.
27 int iscntrl( int c );
28
29 // returns nonzero if c is a digit in the locale.
30 int isdigit( int c );
31
32 // returns nonzero if c is alphanumeric or a punctuation in the locale.
33 int isgraph( int c );
34
35 // returns nonzero if c is a lowercase alphabetic character in the locale.
36 int islower( int c );
37
38 // returns nonzero if c is a printable character ( isgraph(  ) or isblank(  ) ) in
39 // the locale.
40 int isprint( int c );
41
42 // returns nonzero if c is a punctuation in the locale.
43 int ispunct( int c );
44
45 // returns nonzero if c is a whitespace in the locale.
46 int isspace( int c );
47
48 // returns nonzero if c is an uppercase alphabetical character in the locale.
49 int isupper( int c );
50
51 // returns nonzero if c is a hexedecimal digit in the locale.
52 int isxdigit( int c );
53
54 // returns lowercase equivalent for c in locale.
55 int tolower( int c );
56
57 // returns uppercase equivalent for c in locale.
58 int toupper( int c );
59
60 #endif // __CTYPE_H