AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

CONV( 3C ) CONV ( 3C ) NAME toupper, tolower, _toupper, _tolower, toascii - translate characters SYNOPSIS #include 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 domain the range of getc(3S): the integers from - 1 through 255. If the argument of toupper represents a lower-case letter, the result is the corresponding upper-case letter. If the argument of tolower represents an upper-case letter, the result is the corresponding lower-case letter. All other arguments in the domain are returned unchanged. _toupper and _tolower are macros that accomplish the same thing as toupper and tolower but have restricted domains and are faster. _toupper requires a lower-case letter as its argument; its result is the corresponding upper-case letter. _tolower requires an upper-case letter as its argument; its result is the corresponding lower-case letter. Arguments outside the domain cause undefined results. Toascii yields its argument with all bits turned off that are not part of a standard ASCII character; it is intended for compatibility with other systems. SEE ALSO ctype(3C), getc(3S). - 1 -

CONV( 3C ) CONV ( 3C )<br />

NAME<br />

toupper, tolower, _toupper, _tolower, toascii - translate characters<br />

SYNOPSIS<br />

#include <br />

int toupper (c)<br />

int c;<br />

int tolower (c)<br />

int c;<br />

int _toupper (c)<br />

int c;<br />

int _tolower (c)<br />

int c;<br />

int toascii (c)<br />

int c;<br />

DESCRIPTION<br />

Toupper and tolower have as domain the range of getc(3S): the<br />

integers from - 1 through 255. If the argument of toupper<br />

represents a lower-case letter, the result is the corresponding<br />

upper-case letter. If the argument of tolower represents an<br />

upper-case letter, the result is the corresponding lower-case letter.<br />

All other arguments in the domain are returned unchanged.<br />

_toupper and _tolower are macros that accomplish the same thing<br />

as toupper and tolower but have restricted domains and are faster.<br />

_toupper requires a lower-case letter as its argument; its<br />

result is the corresponding upper-case letter. _tolower requires an<br />

upper-case letter as its argument; its result is the corresponding<br />

lower-case letter. Arguments outside the domain cause undefined<br />

results.<br />

Toascii yields its argument with all bits turned off that are not<br />

part of a standard ASCII character; it is intended for compatibility<br />

with other systems.<br />

SEE ALSO<br />

ctype(3C), getc(3S).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!