Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

__isascii, iswascii

Determines whether a particular character is an ASCII character.

int __isascii(  
   int c  
); 
int iswascii(  
   wint_t c  
);

c

Integer to test.

Each of these routines returns nonzero if c is a particular representation of an ASCII character. __isascii returns a nonzero value if c is an ASCII character (in the range 0x00 – 0x7F). iswascii returns a nonzero value if c is a wide-character representation of an ASCII character. Each of these routines returns 0 if c does not satisfy the test condition.

Generic-Text Routine Mappings

Tchar.h routine

_UNICODE and _MBCS not defined

_MBCS defined

_UNICODE defined

_istascii

isascii

isascii

iswascii

Routine

Required header

__isascii

<ctype.h>

iswascii

<ctype.h> or <wchar.h>

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft