ctype.h

The libc header for character operations

Author

Martin ‘Solar’ Baute

License

Public Domain

Defines

isalnum isalpha isblank iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper

Linker Parameters

-lc

int isalnum(int c)
Returns nonzero when c is either a character or a number
int isalpha(int c)
Returns nonzero when c is an alphanumerical character
int isblank(int c)
Returns nonzero when c is a blank (either space or tab)
int iscntrl(int c)
Returns nonzero when c is a control character
int isdigit(int c)
Returns nonzero when c is a decimal digit (number)
int isgraph(int c)
Returns nonzero when c is printable character, excluding space
int islower(int c)
Returns nonzero when c is an lowercase character
int isprint(int c)
Returns nonzero when c is printable character, including space
int ispunct(int c)
Returns nonzero when c is a punctuation character (c is not a control, space, letter or number)
int isspace(int c)
Returns nonzero when c is a whitespace character
int isupper(int c)
Returns nonzero when c is an uppercase character
int isxdigit(int c)
Returns nonzero when c is an hexadecimal digit
int tolower(int c)
Returns the lowercase version of a character
int toupper(int c)
Returns the uppercase version of a character