Test integers representing ASCII characters for specified conditions. These functions are implemented as functions and macros. The test conditions include:
Function | Test conditions |
---|---|
isalnum | Alphanumeric (A-Z, a-z, or 0-9) |
isalpha | Letter (A-Z or a-z) |
isascii | ASCII character (0x00-0x7F) |
iscntrl | Control character (0x00-0x1F or 0x7F) |
isdigit | Digit (0-9) |
isgraph | Printable character except space |
islower | Lowercase letter (a-z) |
isodigit | Octal digit (0-7) |
isprint | Printable character (0x20-0x7E) |
ispunct | Punctuation character |
isspace | White-space character (0x09-0x0D or 0x20) |
isupper | Uppercase letter (A-Z) |
isxdigit | Hexadecimal digit (A-F, a-f, or 0-9) |
All these functions except isascii produce a defined result only for integer values corresponding to the ASCII character set, or for the nonASCII value EOF.
#include <ctype.h> int isalnum (int c); int isalpha (int c); int isascii (int c); int iscntrl (int c); int isdigit (int c); int isgraph (int c); int islower (int c); int isodigit (int c); int isprint (int c); int ispunct (int c); int isspace (int c); int isupper (int c); int isxdigit (int c);
c
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/ctype.h | ctype.h | clib.lib |