ctype(3)

ctype3

Character classification macros

Usage

#include <ctype.h>

int

digittoint(int c);

int

isalnum(int c);

int

isalpha(int c);

int

isascii(int c);

int

iscntrl(int c);

int

isdigit(int c);

int

isgraph(int c);

int

ishexnumber(int c);

int

isideogram(int c);

int

islower(int c);

int

isnumber(int c);

int

isphonogram(int c);

int

isspecial(int c);

int

isprint(int c);

int

ispunct(int c);

int

isrune(int c);

int

isspace(int c);

int

isupper(int c);

int

isxdigit(int c);

int

toascii(int c);

int

tolower(int c);

int

toupper(int c);

Library

Standard C Library (libc, -lc)

Overview

The above functions perform character tests and conversions on the integer c. They are available as macros, defined in the include file ⟨ctype.h⟩, or as true functions in the C library. See the specific manual pages for more information.

Extended locale versions of these functions are documented in ctype_l(3). See xlocale(3) for more information.

Releases

163 releases since Mac OS X 10.0; the text changed 5 times.

  1. 10.0–10.1.5
  2. 10.2–10.2.8
  3. 10.3–10.3.9
  4. 10.4–10.4.11
  5. 10.5–10.6.8
  6. 10.7–26.5

Standards

These functions, except for digittoint(), isascii(), ishexnumber(), isideogram(), isnumber(), isphonogram(), isrune(), isspecial() and toascii(), conform to ISO/IEC 9899:1990 (“ISO C90”).

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.