AVR Libc Home Page | AVR Libc Development Pages | |||
Main Page | FAQ | Library Reference | Additional Documentation | Example Projects |
#include <ctype.h>
Character classification routines | |
These functions perform character classification. They return true or false status depending whether the character passed to the function falls into the function's classification (i.e. isdigit() returns true if its argument is any value '0' though '9', inclusive.) | |
int | isalnum (int __c) __ATTR_CONST__ |
int | isalpha (int __c) __ATTR_CONST__ |
int | isascii (int __c) __ATTR_CONST__ |
int | isblank (int __c) __ATTR_CONST__ |
int | iscntrl (int __c) __ATTR_CONST__ |
int | isdigit (int __c) __ATTR_CONST__ |
int | isgraph (int __c) __ATTR_CONST__ |
int | islower (int __c) __ATTR_CONST__ |
int | isprint (int __c) __ATTR_CONST__ |
int | ispunct (int __c) __ATTR_CONST__ |
int | isspace (int __c) __ATTR_CONST__ |
int | isupper (int __c) __ATTR_CONST__ |
int | isxdigit (int __c) __ATTR_CONST__ |
Character convertion routines | |
If c is not an unsigned char value, or EOF , the behaviour of these functions is undefined. | |
int | toascii (int __c) __ATTR_CONST__ |
int | tolower (int __c) __ATTR_CONST__ |
int | toupper (int __c) __ATTR_CONST__ |
|
Checks for an alphanumeric character. It is equivalent to |
|
Checks for an alphabetic character. It is equivalent to |
|
Checks whether |
|
Checks for a blank character, that is, a space or a tab. |
|
Checks for a control character. |
|
Checks for a digit (0 through 9). |
|
Checks for any printable character except space. |
|
Checks for a lower-case character. |
|
Checks for any printable character including space. |
|
Checks for any printable character which is not a space or an alphanumeric character. |
|
Checks for white-space characters. For the avr-libc library, these are: space, form-feed ('\f'), newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v'). |
|
Checks for an uppercase letter. |
|
Checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F. |
|
Converts
|
|
Converts the letter |
|
Converts the letter |