NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | NOTES | STANDARDS
#include <ctype.h>int toascii(int c);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The toascii() function strips all but the lowest 7 bits from a letter, including parity or other marker bits.
The toascii() function returns a valid ASCII character. This character is ASCII only according to the default locale. If another locale is currently in effect, the semantic correctness of the result is not specified.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
isascii(3STDC), ctype(3STDC), isalnum(3STDC), isalpha(3STDC), iscntrl(3STDC), isdigit(3STDC), isgraph(3STDC), islower(3STDC), isprint(3STDC), ispunct(3STDC), isspace(3STDC), isupper(3STDC), isxdigit(3STDC), tolower(3STDC), toupper(3STDC)
This macro is only available in sources which have not used _POSIX_SOURCE or _ANSI_SOURCE flags when being compiled.
Due to its dubious validity when used in conjunction with setlocale(), this function is no longer a part of ANSI-C.
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | NOTES | STANDARDS