HP-UX Reference (11i v2 03/08) - 3 Library Functions A-M (vol 6)

c
ctype(3C) ctype(3C)
WARNINGS
These functions are supplied both as library functions and as macros defined in the <
ctype.h>header.
Normally, the macro versions are used. To obtain the library function, either use a
#undef to remove
the macro definition or, if compiling in
ANSI-C mode, enclose the function name in parenthesis or take its
address. The following example uses the library functions for
isalpha(), isdigit(), and
isspace():
#include <ctype.h>
#undef isalpha
...
main()
{
int (*ctype_func)();
...
if ( isalpha(c) )
...
if ( (isdigit)(c) )
...
ctype_func = isspace;
...
}
AUTHOR
ctype() was developed by IBM, OSF, and HP.
SEE ALSO
setlocale(3C), ascii(5), thread_safety(5).
STANDARDS CONFORMANCE
isalnum(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isalpha(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isascii(): AES, SVID2, SVID3, XPG2, XPG3, XPG4
iscntrl(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isdigit(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isgraph(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
islower(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isprint(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
ispunct(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isspace(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isupper(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
isxdigit(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
HP-UX 11i Version 2: August 2003 2 Hewlett-Packard Company Section 3151