Convert Case
tolower/toupper
Syntax
Defined in
Description
#include
<ctype.h>
int
to!ower(c)
char
Ci
int
toupper(c)
char
Ci
tolower. c in rts. src
toupper. c in rts. src
Two functions convert the case of a single alphabetic character, c, to upper
or lower case:
•
The tolower function converts an uppercase argument to lowercase.
If c is already in lowercase, to lower returns it unchanged.
•
The toupper function converts a lowercase argument to uppercase.
If c is already in uppercase, toupper returns it unchanged.
The functions have macro equivalents named -tolower and -toupper.
6-87