FreeBSD Manual Pages
ctype(3C) ctype(3C) NAME isalpha(), isupper(), islower(), isdigit(), isxdigit(), isalnum(), iss- pace(), ispunct(), isprint(), isgraph(), iscntrl(), isascii() - clas- sify characters SYNOPSIS DESCRIPTION These functions classify character-coded integer values according to the rules of the coded character set identified by the last successful call to (see setlocale(3C)). Each function is a predicate returning non-zero for true, zero for false. If has not been called successfully, characters are classified accord- ing to the rules of the default ASCII 7-bit coded character set (see setlocale(3C)). is defined on all integer values; the other functions are defined for the range (EOF) through The functions return non-zero under the following circumstances; zero otherwise: c is a letter. c is an uppercase letter. c is a lowercase letter. c is a decimal digit (in ASCII: characters [0-9]). c is a hexadecimal digit (in ASCII: characters [0-9], [A-F] or [a-f]). c is an alphanumeric (letters or digits). c is a character that creates ``white space'' in displayed text (in ASCII: space, tab, carriage return, new-line, vertical tab, and form- feed). c is a punctuation character (in ASCII: any printing character except the space character (040), digits, letters). c is a printing character. c is a visible character (in ASCII: printing characters, excluding the space character (040)). c is a control character (in ASCII: character codes less than 040 and the delete character (0177)). c is any ASCII character code between 0 and 0177, inclusive. If the argument to any of these functions is outside the domain of the function, the result is undefined. EXTERNAL INFLUENCES Locale The 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 header. Normally, the macro versions are used. To ob- tain the library function, either use a to remove the macro definition or, if compiling in ANSI-C mode, enclose the function name in parenthe- sis or take its address. The following example uses the library func- tions for and AUTHOR was developed by IBM, OSF, and HP. SEE ALSO setlocale(3C), ascii(5), thread_safety(5). STANDARDS CONFORMANCE ctype(3C)
NAME | SYNOPSIS | DESCRIPTION | EXTERNAL INFLUENCES | WARNINGS | AUTHOR | SEE ALSO | STANDARDS CONFORMANCE
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ctype&sektion=3c&manpath=HP-UX+11.22>