CONV(3C) DOMAIN/IX Reference Manual (SYS5) CONV(3C)
NAME
toupper, tolower, toupper, tolower, toascii - translate
characters
USAGE
#include <ctype.h>
int toupper (c)
int c;
int tolower (c)
int c;
int toupper (c)
int c;
int tolower (c)
int c;
int toascii (c)
int c;
DESCRIPTION
Toupper and tolower have as their domain the range of
getc(3S): the integers from -1 through 255. If the argument
of toupper represents a lowercase letter, the result is the
corresponding uppercase letter. If the argument of tolower
represents an uppercase letter, the result is the
corresponding lowercase letter. All other arguments in the
domain are returned unchanged.
The macros toupper and tolower, accomplish the same thing
as toupper and tolower, but have more restricted domains and
are much faster. toupper requires a lowercase letter as
its argument; its result is the corresponding uppercase
letter. The macro tolower requires an uppercase letter as
its argument; its result is the corresponding lowercase
letter. Arguments outside the domain cause undefined
results.
Toascii takes an argument, and returns it with all bits that
are not part of a standard ASCII character turned off.
RELATED INFORMATION
ctype(3C), getc(3S)
Printed 5/10/85 CONV-1