CTYPE(3) BSD Library Functions Manual CTYPE(3)
NAME
isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isblank, toupper, tolower, -- character
classification and mapping functions
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ctype.h>
isalpha(int c);
isupper(int c);
islower(int c);
isdigit(int c);
isxdigit(int c);
isalnum(int c);
isspace(int c);
ispunct(int c);
isprint(int c);
isgraph(int c);
iscntrl(int c);
isblank(int c);
toupper(int c);
tolower(int c);
DESCRIPTION
The above functions perform character tests and conversions on the integer c.
See the specific manual pages for information about the test or conversion performed by each function.
EXAMPLES
To print an upper-case version of a string to stdout, the following code can be used:
const char *s = "xyz";
while (*s != '