toascii


Conversion to ASCII code

[Classification]

Standard library

[Syntax]

#include <ctype.h>

int __far toascii(int c);

[Return value]

Returns the value of c with its lower seven bits masked.

[Description]

This function converts the value of c into the ASCII code. Bits (bits 7 to 15) other than the ASCII code range (bits 0 to 6) are set to 0.