· isxxxxx
Character
Typing
Macros
isxxxxx
Syntax
#include
<ctype.h>
int
isxxxxx( character)
char character;
Description
These macros identify a particular type
of
character, such
as
alphabetic,
6-8
alphanumeric, numeric, ASCII, etc.
If
the argument character
is
one
of
the
characters designated by the macro
name, the macro returns a nonzero
in-
teger. Otherwise, it returns
O.
The character
typing
macros
are:
isalnum
isalpha
isascii
iscntrl
isdigit
islower
isprint
ispunct
isspace
isupper
isxdigit
Detects alphanumeric ASCII characters.
Detects
alphabetic ASCII characters.
Detects
ASCII characters.
Detects
control characters.
Detects numeric characters.
Detects
lowercase alphabetic ASCII characters.
Detects
printable ASCII characters.
Detects
ASCII punctuation characters.
Detects
ASCII spacebar, tab (horizontal
or
vertical), car-
riage
return, formfeed, and
newline
characters.
Detects uppercase
ASCII alphabetic characters.
Detects
hexadecimal
digit
characters.