|
CC78K0S Datasheet, PDF (188/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
1-2 toupper
tolower
Character & String Functions
FUNCTION
The character functions toupper and tolower both convert one type of character to another.
The toupper function returns the uppercase equivalent of c if c is a lowercase letter.
The tolower function returns the lowercase equivalent of c if c is a uppercase letter.
HEADER
ctype.h
FUNCTION PROTOTYPE
int to-(int c);
Function
toupper, tolower
Arguments
c.. Character to be converted
Return Value
Uppercase equivalent if c is a
convertible character.
Character âcâ is returned
unchanged if not convertible.
EXPLANATION
toupper
⢠The toupper function checks to see if the argument is a lowercase letter and if so converts the letter to its
uppercase equivalent.
tolower
⢠The tolower function checks to see if the argument is a uppercase letter and if so converts the letter to its
lowercase equivalent.
188
Userâs Manual U14872EJ1V0UM
|
▷ |