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
12 ctype.h — character types
13
15 #include <ctype.h>
16
18 Some of the functionality described on this reference page extends the
19 ISO C standard. Applications shall define the appropriate feature test
20 macro (see the System Interfaces volume of POSIX.1‐2017, Section 2.2,
21 The Compilation Environment) to enable the visibility of these symbols
22 in this header.
23
24 The <ctype.h> header shall define the locale_t type as described in
25 <locale.h>, representing a locale object.
26
27 The following shall be declared as functions and may also be defined as
28 macros. Function prototypes shall be provided for use with ISO C stan‐
29 dard compilers.
30
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
66 int _toupper(int);
67 int _tolower(int);
68
69 The following sections are informative.
70
72 None.
73
75 None.
76
78 None.
79
81 <locale.h>
82
83 The System Interfaces volume of POSIX.1‐2017, Section 2.2, The Compila‐
84 tion Environment, isalnum(), isalpha(), isascii(), isblank(), iscn‐
85 trl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), iss‐
86 pace(), isupper(), isxdigit(), mblen(), mbstowcs(), mbtowc(), setlo‐
87 cale(), toascii(), tolower(), _tolower(), toupper(), _toupper(),
88 wcstombs(), wctomb()
89
91 Portions of this text are reprinted and reproduced in electronic form
92 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
93 table Operating System Interface (POSIX), The Open Group Base Specifi‐
94 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
95 Electrical and Electronics Engineers, Inc and The Open Group. 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.opengroup.org/unix/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 2017 ctype.h(0P)