NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | NOTES | STANDARDS
#include <ctype.h>int toascii(int c);
The toascii function strips all but the low 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 semantical correctness of the result is unspecified.
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 | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | NOTES | STANDARDS