English
Language : 

CC78K0S Datasheet, PDF (189/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
1-3 toascii
Character & String Functions
FUNCTION
The character function toascii converts “c” to an ASCII code.
HEADER
ctype.h
FUNCTION PROTOTYPE
int toascii(int c);
Function
toascii
Arguments
c.. Character to be converted
Return Value
Value obtained by converting
the bits outside the ASCII
code range of “c” to 0.
EXPLANATION
The toascii function converts the bits (bits 7 to 15) of “c” outside the ASCII code range of “c” (bits 0 to 6) to “0”
and returns the converted bit value.
User’s Manual U14872EJ1V0UM
189