Tolower, toupper functions, Tolower, toupper – Zilog Z80380 User Manual
Page 88

Library Functions
Run Time Environment
4–24
UM004001-COR1103
tolower, toupper
FUNCTIONS
Header file statement:
#include <ctype.h>
Syntax:
int tolower
( int c );
int toupper
( int c );
The tolower and toupper routines macros convert a single character, as described below:
Function
MacroDescription
tolower
tolower Converts c to lowercase if appropriate
toupper
toupper Converts c to uppercase if appropriate
The tolower routine converts c to lowercase if c represents an uppercase letter. Otherwise, c
is unchanged.
The toupper routine converts c to uppercase if c represents an lowercase letter. Otherwise,
c is unchanged.
Return Value
The tolower and toupper routines return the converted character c. There is no error returned.
Parameter
Description
c
Character to be converted