INtime SDK Help
toascii, tolower, _tolower, toupper, _toupper (ANSI)

Convert single characters.

#include <ctype.h>

int toascii (int c);

int tolower (int c);

int _tolower (int c);

int toupper (int c);

int _toupper (int c);


Character to convert.


These functions are implemented both as functions and as macros. To use the function versions, remove the macro definitions through #undef directives, or do not include CTYPE.H.

Function Description
toascii Converts c to ASCII character. toascii sets all but the low-order 7 bits of c to 0, so that the converted value represents an ASCII character. If c already represents an ASCII character, c is unchanged.
tolower Converts c to lowercase if c represents an uppercase letter.
_tolower Converts c to lowercase only when c represents an uppercase letter; the result is undefined if c is not.
toupper Converts c to uppercase if c represents a lowercase letter.
_toupper Converts c to uppercase only when c represents a lowercase letter; the result is undefined if c is not.

Return Values

The converted character.
No error return.


Versions Defined in Include Link to
INtime 3.0 intime/rt/include/ctype.h ctype.h clib.lib

See Also

is functions