Embedded Artistry Framework
Embedded Systems C++ Framework
Functions
toascii.c File Reference
#include <ctype.h>
Include dependency graph for toascii.c:

Functions

int toascii (int c)
 Converts the given character to ASCII. More...
 

Function Documentation

◆ toascii()

int toascii ( int  ch)

Converts the given character to ASCII.

Converts the given character to a 7-bit unsigned char value that fits into the ASCII character set.

Parameters
chcharacter to be converted.
Returns
The value returned is that of the converted letter, or ch if the conversion was not possible.

Referenced by bad_input(), and good_input().

Here is the caller graph for this function: