📄 ctype.3
字号:
.\" @(#)ctype.3 6.4 (Berkeley) 5/12/86.\".TH CTYPE 3 "May 12, 1986".AT 3.SH NAMEctype, isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii, toupper, tolower, toascii \- character classification macros.SH SYNOPSIS.nf.ft B#include <ctype.h>int isalpha(int \fIc\fP)\&....fi.SH DESCRIPTIONThese macros classify charactersby table lookup.Each is a predicate returning nonzero for true,zero for false..B Isasciiand.B toasciiare defined on all integer values; the restare defined only on the range of.B "unsigned char"and on the special valueEOF (see.BR stdio (3))..TP 15n.B isalpha.I cis a letter.TP.B isupper.I cis an upper case letter.TP.B islower .I cis a lower case letter.TP.B isdigit.I cis a digit.TP.B isxdigit.I cis a hex digit.TP.B isalnum.I cis an alphanumeric character.TP.B isspace.I cis a space, tab, carriage return, newline, vertical tab, or formfeed.TP.B ispunct.I cis a punctuation character (neither control nor alphanumeric).TP.B isprint.I cis a printing character, code 040(8) (space) through 0176 (tilde).TP.B isgraph.I cis a printing character, similar to.B isprintexcept false for space..TP.B iscntrl.I cis a delete character (0177) or ordinary control character(less than 040)..TP.B isascii.I cis an ASCII character, code less than 0200.TP.B tolower.I cis converted to lower case. Return value is undefined if not .BR isupper (\fIc\fR)..TP.B toupper.I cis converted to upper case. Return value is undefined if not .BR islower (\fIc\fR)..TP.B toascii.I cis converted to be a valid ascii character..SH "SEE ALSO".BR ascii (7)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -