conv(3C)conv(3C)NAMEtoupper(), tolower(), _toupper(), _tolower(), toascii() - translate
and have as domain the range of getc(3S): the integers from −1 through
255. If the argument of represents a lower-case letter, the result is
the corresponding upper-case letter. If the argument of represents an
upper-case letter, the result is the corresponding lower-case letter.
All other arguments in the domain are returned unchanged. Arguments
outside the domain cause undefined results.
The macros and are identical to and respectively.
yields its argument with all bits that are not part of a standard 7-bit
ASCII character cleared; it is intended for compatibility with other
is supplied both as a library function and as a macro defined in the
header. Normally, the macro version is used. To obtain the library
function, either use a to remove the macro definition or, if compiling
in ANSI C mode, enclose the function name in parenthesis or take its
address. The following examples use the library function for
The following example use the library function for
The category determines the translations to be done.
International Code Set Support
Single-byte character code sets are supported.
was developed by IBM, OSF, and HP.
SEE ALSOctype(3C), getc(3S), setlocale(3C), lang(5), thread_safety(5).