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);
c
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. |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/ctype.h | ctype.h | clib.lib |