toascii()
QNX SDP8.0C Library ReferenceAPIDeveloper
Convert a character to a 7-bit ASCII value
Synopsis:
#include <ctype.h>
int toascii( int c );
Arguments:
- c
- The character that you want to convert.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The toascii() function converts c to the 7‑bit ASCII range by masking off all but the low 7 bits.
Returns:
The corresponding 7-bit ASCII value for the provided character.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Signal handler | Yes |
| Thread | Yes |
Page updated:
