HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
c
ctype(3C) ctype(3C)
Locale
The LC_CTYPE category determines the classification of character type.
International Code Set Support
Single-byte character code sets are supported.
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).
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 Release 11i: December 2000 − 2 − Section 3−−109
___
___