C Programming/ctype.h/Function reference
isalnum
editPrototype
editint isalnum(int c);
Description
editThis function tests whether the character c is of class alpha or digit in the current locale.
isalpha
editPrototype
editint isalpha(int c);
Description
editThis function tests whether the character c is alphabetic in the current locale.
isblank
editPrototype
editint isblank(int c);
Description
editThis function tests whether the character c is a space or a tab in the current locale.
iscntrl
editPrototype
editint iscntrl(int c);
Description
editThis function returns true if c is a control character (that is, a character that is not a printing character).
isdigit
editPrototype
editint isdigit(int c);
Description
editThis function returns true if c is a decimal digit ('0' through '9').
isgraph
editPrototype
editint isgraph(int c);
Description
editThis function returns true if c is a character that has a glyph associated with it. Whitespace characters are not considered graphic.
islower
editPrototype
editint islower(int c);
Description
editThis function tests whether the character c is lowercase.
isprint
editPrototype
editint isprint(int c);
Description
editThis function returns true if c is a printing character. Printing characters include all the graphic characters, plus the space character.
ispunct
editPrototype
editint isalnum(int c);
Description
editThis function returns true if c is a punctuation character. This includes any printing character that is not alphanumeric or a space character.
isspace
editPrototype
editint isspace(int c);
Description
editReturns true if c is a whitespace character. In the standard C locale, these are the valid space characters:
- Spaces
- Horizontal tabs
- Vertical tabs
- Newlines
- Formfeeds
- Carriage returns
isupper
editPrototype
editint isupper(int c);
Description
editThis function tests whether the character c is uppercase.
isxdigit
editPrototype
editint isxdigit(int c);
Description
editThis function tests whether the character c is a hexadecimal dight ('0' through 'F').
tolower
editPrototype
editint tolower(int c);
Description
editThis function transliterates an uppercase character to lowercase and returns it. If c is not an uppercase letter, c is returned unchanged.
toupper
editPrototype
editint toupper(int c);
Description
editThis function transliterates a lowercase character to uppercase and returns it. If c is not a lowercase letter, c is returned unchanged.