|
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
|
▷ |