1ctype.h(0P) POSIX Programmer's Manual ctype.h(0P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
11
13 ctype.h — character types
14
16 #include <ctype.h>
17
19 Some of the functionality described on this reference page extends the
20 ISO C standard. Applications shall define the appropriate feature test
21 macro (see the System Interfaces volume of POSIX.1‐2008, Section 2.2,
22 The Compilation Environment) to enable the visibility of these symbols
23 in this header.
24
25 The <ctype.h> header shall define the locale_t type as described in
26 <locale.h>, representing a locale object.
27
28 The following shall be declared as functions and may also be defined as
29 macros. Function prototypes shall be provided for use with ISO C stan‐
30 dard compilers.
31
32 int isalnum(int);
33 int isalnum_l(int, locale_t);
34 int isalpha(int);
35 int isalpha_l(int, locale_t);
36 int isascii(int);
37 int isblank(int);
38 int isblank_l(int, locale_t);
39 int iscntrl(int);
40 int iscntrl_l(int, locale_t);
41 int isdigit(int);
42 int isdigit_l(int, locale_t);
43 int isgraph(int);
44 int isgraph_l(int, locale_t);
45 int islower(int);
46 int islower_l(int, locale_t);
47 int isprint(int);
48 int isprint_l(int, locale_t);
49 int ispunct(int);
50 int ispunct_l(int, locale_t);
51 int isspace(int);
52 int isspace_l(int, locale_t);
53 int isupper(int);
54 int isupper_l(int, locale_t);
55 int isxdigit(int);
56 int isxdigit_l(int, locale_t);
57 int toascii(int);
58 int tolower(int);
59 int tolower_l(int, locale_t);
60 int toupper(int);
61 int toupper_l(int, locale_t);
62
63 The <ctype.h> header shall define the following as macros:
64
65 int _toupper(int);
66 int _tolower(int);
67
68 The following sections are informative.
69
71 None.
72
74 None.
75
77 None.
78
80 <locale.h>
81
82 The System Interfaces volume of POSIX.1‐2008, Section 2.2, The Compila‐
83 tion Environment, isalnum(), isalpha(), isascii(), isblank(), iscn‐
84 trl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), iss‐
85 pace(), isupper(), isxdigit(), mblen(), mbstowcs(), mbtowc(), setlo‐
86 cale(), toascii(), tolower(), _tolower(), toupper(), _toupper(),
87 wcstombs(), wctomb()
88
90 Portions of this text are reprinted and reproduced in electronic form
91 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
92 -- Portable Operating System Interface (POSIX), The Open Group Base
93 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
94 cal and Electronics Engineers, Inc and The Open Group. (This is
95 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
96 event of any discrepancy between this version and the original IEEE and
97 The Open Group Standard, the original IEEE and The Open Group Standard
98 is the referee document. The original Standard can be obtained online
99 at http://www.unix.org/online.html .
100
101 Any typographical or formatting errors that appear in this page are
102 most likely to have been introduced during the conversion of the source
103 files to man page format. To report such errors, see https://www.ker‐
104 nel.org/doc/man-pages/reporting_bugs.html .
105
106
107
108IEEE/The Open Group 2013 ctype.h(0P)