English
Language : 

CC78K0S Datasheet, PDF (190/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
1-4 _toupper/toup
_tolower/tolow
Character & String Functions
FUNCTION
The character function _toupper/toup subtracts “a” from “c” and adds “A” to the result.
The character function _tolower/tolow subtracts “A” from “c” and adds “a” to the result.
(_toupper is exactly the same as toup, and _tolower is exactly the same as the tolow)
Remark a: Lowercase; A: Uppercase
HEADER
ctype.h
FUNCTION PROTOTYPE
int _to-(int c);
Function
_toupper
toup
_tolower
tolow
Arguments
c.. Character to be converted
Return Value
Value obtained by adding “A”
to the result of subtracting “a”
from “c”
Value obtained by adding “a”
to the result of subtracting “A”
from “c”
Remark a: Lowercase; A: Uppercase
EXPLANATION
_toupper
• The _toupper function is similar to toupper except that it does not test to see if the argument is a lowercase
letter.
_tolower
• The _tolower function is similar to tolower, except it does not test to see if the argument is an uppercase
letter.
190
User’s Manual U14872EJ1V0UM