isascii(), isascii_l()

tests if character is a 7-bit US-ASCII character 

Function


SYNOPSIS

#include <ctype.h>

int isascii(int c);

int isascii_l(int c, locale_t locale);


DESCRIPTION

The isascii() and isasciii_l() functions test for a 7-bit US-ASCII character.


PARAMETERS

c 

Is any integer value.

locale 

Is a locale_t perhaps returned by newlocale() or LC_GLOBAL_LOCALE or 0 for the current thread locale set with uselocale().


RETURN VALUES

The isascii() and isascii_l() functions return non-zero if c is a 7-bit US-ASCII character code between 0 and octal 0177 inclusive; otherwise returns zero.

isascii_l() behaves in the same way as isascii() without the _l suffix, but uses the specified locale rather than the global or per-thread locale. A locale_t is returned by newlocale().


CONFORMANCE

The isascii() function conforms to UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe, with exceptions.

The function isascii() is MT-Safe as long as no thread calls setlocale() while this function is executing.

The function isascii_l() is MT-Safe as long as no thread calls freelocale() on locale while this function is executing.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
isalnum(), isalnum_l(), isalpha(), isalpha_l(), iscntrl(), iscntrl_l(), isdigit(), isdigit_l(), isgraph(), isgraph_l(), islower(), islower_l(), isprint(), isprint_l(), ispunct(), ispunct_l(), isspace(), isspace_l(), isupper(), isupper_l(), isxdigit(), isxdigit_l(), xlocale()


PTC MKS Toolkit 10.5 Documentation Build 40.