|
|
1.1 ! root 1: .\" @(#)ctype.3 6.4 (Berkeley) 5/12/86 ! 2: .\" ! 3: .TH CTYPE 3 "May 12, 1986" ! 4: .AT 3 ! 5: .SH NAME ! 6: isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii, toupper, tolower, toascii \- character classification macros ! 7: .SH SYNOPSIS ! 8: .B #include <ctype.h> ! 9: .PP ! 10: .B isalpha(c) ! 11: .PP ! 12: .B . . . ! 13: .SH DESCRIPTION ! 14: These macros classify ASCII-coded integer values ! 15: by table lookup. ! 16: Each is a predicate returning nonzero for true, ! 17: zero for false. ! 18: .I Isascii ! 19: and ! 20: .I toascii ! 21: are defined on all integer values; the rest ! 22: are defined only where ! 23: .I isascii ! 24: is true and on the single non-ASCII value ! 25: EOF (see ! 26: .IR stdio (3S)). ! 27: .TP 15n ! 28: .I isalpha ! 29: .I c ! 30: is a letter ! 31: .TP ! 32: .I isupper ! 33: .I c ! 34: is an upper case letter ! 35: .TP ! 36: .I islower ! 37: .I c ! 38: is a lower case letter ! 39: .TP ! 40: .I isdigit ! 41: .I c ! 42: is a digit ! 43: .TP ! 44: .I isxdigit ! 45: .I c ! 46: is a hex digit ! 47: .TP ! 48: .I isalnum ! 49: .I c ! 50: is an alphanumeric character ! 51: .TP ! 52: .I isspace ! 53: .I c ! 54: is a space, tab, carriage return, newline, vertical tab, or formfeed ! 55: .TP ! 56: .I ispunct ! 57: .I c ! 58: is a punctuation character (neither control nor alphanumeric) ! 59: .TP ! 60: .I isprint ! 61: .I c ! 62: is a printing character, code 040(8) (space) through 0176 (tilde) ! 63: .TP ! 64: .I isgraph ! 65: .I c ! 66: is a printing character, similar to ! 67: .I isprint ! 68: except false for space. ! 69: .TP ! 70: .I iscntrl ! 71: .I c ! 72: is a delete character (0177) or ordinary control character ! 73: (less than 040). ! 74: .TP ! 75: .I isascii ! 76: .I c ! 77: is an ASCII character, code less than 0200 ! 78: .TP ! 79: .I tolower ! 80: .I c ! 81: is converted to lower case. Return value is undefined if not ! 82: .I isupper(c). ! 83: .TP ! 84: .I toupper ! 85: .I c ! 86: is converted to upper case. Return value is undefined if not ! 87: .I islower(c). ! 88: .TP ! 89: .I toascii ! 90: .I c ! 91: is converted to be a valid ascii character. ! 92: .SH "SEE ALSO" ! 93: ascii(7)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.