字符测试Character Testing

ANSI 4.3.1:由 isalnumisalphaiscntrlislowerisprintisupper 函数测试的字符集ANSI 4.3.1 The sets of characters tested for by the isalnum, isalpha, iscntrl, islower, isprint, and isupper functions

以下列表描述了由 Microsoft C 编译器实现的这些函数。The following list describes these functions as they are implemented by the Microsoft C compiler.

函数Function 测试Tests For
isalnum 字符 0 - 9、A-Z、a–z ASCII 48-57、65-90、97-122Characters 0 - 9, A-Z, a-z ASCII 48-57, 65-90, 97-122
isalpha 字符 A-Z、a–z ASCII 65-90、97-122Characters A-Z, a-z ASCII 65-90, 97-122
iscntrl ASCII 0 -31、127ASCII 0 -31, 127
islower 字符 a-z ASCII 97-122Characters a-z ASCII 97-122
isprint 字符 A–Z、a–z、0 - 9、标点、空格 ASCII 32–126Characters A-Z, a-z, 0 - 9, punctuation, space ASCII 32-126
isupper 字符 A-Z ASCII 65-90Characters A-Z ASCII 65-90

另请参阅See Also

库函数Library Functions