Character Testing

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Character Testing.

ANSI 4.3.1** The sets of characters tested for by the isalnum, isalpha, iscntrl, islower, isprint, and isupper functions

The following list describes these functions as they are implemented by the Microsoft C compiler.

FunctionTests For
isalnumCharacters 0 – 9, A–Z, a–z ASCII 48–57, 65–90, 97–122
isalphaCharacters A–Z, a–z ASCII 65–90, 97–122
iscntrlASCII 0 –31, 127
islowerCharacters a–z ASCII 97–122
isprintCharacters A–Z, a–z, 0 – 9, punctuation, space ASCII 32–126
isupperCharacters A–Z ASCII 65–90

Library Functions

Show: