01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CTYPE ( 3C ) CTYPE ( 3C )<br />

NAME<br />

isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct,<br />

isprint, isgraph, iscntrl, isascii - classify characters<br />

SYNOPSIS<br />

#include < ctype.h ><br />

int isalpha (c)<br />

int c;<br />

DESCRIPTION<br />

These macros classify character-coded integer values by table<br />

lookup. Each is a predicate returning nonzero for true, zero for<br />

false. Isascii is defined on all integer values; the rest are defined<br />

only where isascii is true and on the single non-ASCII value EOF<br />

( -1 - see stdio(3S)).<br />

is alpha<br />

isupper<br />

islower<br />

is digit<br />

isxdigit<br />

isalnum<br />

isspace<br />

ispunct<br />

is print<br />

is graph<br />

iscntrl<br />

c is a letter.<br />

c is an upper-case letter.<br />

c is a lower-case letter.<br />

c is a digit [0-9] .<br />

c is a hexadecimal digit [0-9], [A-F] or [a-f] .<br />

c is an alphanumeric (letter or digit).<br />

c is a space, tab, carriage return, new-line, vertical<br />

tab, or form-feed.<br />

c is a punctuation character (neither control nor<br />

alphanumeric).<br />

c is a printing character, code 040 (space)<br />

through 0176 (tilde).<br />

c is a printing character, like isprint except false<br />

for space.<br />

c is a delete character (0177) or an ordinary control<br />

character (less than 040).<br />

c is an ASCII character, code less than 0200.<br />

isascii<br />

DIAGNOSTICS<br />

If the argument to any of these macros is not in the domain of the<br />

function, the result is undefined.<br />

SEE ALSO<br />

ascii(S).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!