VxWorks Reference Manual : Libraries
ansiCtype - ANSI ctype documentation
isalnum( ) - test whether a character is alphanumeric (ANSI)
isalpha( ) - test whether a character is a letter (ANSI)
iscntrl( ) - test whether a character is a control character (ANSI)
isdigit( ) - test whether a character is a decimal digit (ANSI)
isgraph( ) - test whether a character is a printing, non-white-space character (ANSI)
islower( ) - test whether a character is a lower-case letter (ANSI)
isprint( ) - test whether a character is printable, including the space character (ANSI)
ispunct( ) - test whether a character is punctuation (ANSI)
isspace( ) - test whether a character is a white-space character (ANSI)
isupper( ) - test whether a character is an upper-case letter (ANSI)
isxdigit( ) - test whether a character is a hexadecimal digit (ANSI)
tolower( ) - convert an upper-case letter to its lower-case equivalent (ANSI)
toupper( ) - convert a lower-case letter to its upper-case equivalent (ANSI)
The header ctype.h declares several functions useful for testing and mapping characters. In all cases, the argument is an int, the value of which is representable as an unsigned char or is equal to the value of the macro EOF. If the argument has any other value, the behavior is undefined.
The behavior of the ctype functions is affected by the current locale. VxWorks supports only the "C" locale.
The term "printing character" refers to a member of an implementation-defined set of characters, each of which occupies one printing position on a display device; the term "control character" refers to a member of an implementation-defined set of characters that are not printing characters.
ctype.h
ansiCtype, American National Standard X3.159-1989
isalnum( ) - test whether a character is alphanumeric (ANSI)
int isalnum ( int c /* character to test */ )
This routine tests whether c is a character for which isalpha( ) or isdigit( ) returns true.
ctype.h
Non-zero if and only if c is alphanumeric.
isalpha( ) - test whether a character is a letter (ANSI)
int isalpha ( int c /* character to test */ )
This routine tests whether c is a character for which isupper( ) or islower( ) returns true.
ctype.h
Non-zero if and only if c is a letter.
iscntrl( ) - test whether a character is a control character (ANSI)
int iscntrl ( int c /* character to test */ )
This routine tests whether c is a control character.
ctype.h
Non-zero if and only if c is a control character.
isdigit( ) - test whether a character is a decimal digit (ANSI)
int isdigit ( int c /* character to test */ )
This routine tests whether c is a decimal-digit character.
ctype.h
Non-zero if and only if c is a decimal digit.
isgraph( ) - test whether a character is a printing, non-white-space character (ANSI)
int isgraph ( int c /* character to test */ )
This routine returns true if c is a printing character, and not a character for which isspace( ) returns true.
ctype.h
Non-zero if and only if c is a printable, non-white-space character.
islower( ) - test whether a character is a lower-case letter (ANSI)
int islower ( int c /* character to test */ )
This routine tests whether c is a lower-case letter.
ctype.h
Non-zero if and only if c is a lower-case letter.
isprint( ) - test whether a character is printable, including the space character (ANSI)
int isprint ( int c /* character to test */ )
This routine returns true if c is a printing character or the space character.
ctype.h
Non-zero if and only if c is printable, including the space character.
ispunct( ) - test whether a character is punctuation (ANSI)
int ispunct ( int c /* character to test */ )
This routine tests whether a character is punctuation, i.e., a printing character for which neither isspace( ) nor isalnum( ) is true.
ctype.h
Non-zero if and only if c is a punctuation character.
isspace( ) - test whether a character is a white-space character (ANSI)
int isspace ( int c /* character to test */ )
This routine tests whether a character is one of the standard white-space characters, as follows:
space "\0" horizontal tab \t vertical tab \v carriage return \r new-line \n form-feed \f
ctype.h
Non-zero if and only if c is a space, tab, carriage return, new-line, or form-feed character.
isupper( ) - test whether a character is an upper-case letter (ANSI)
int isupper ( int c /* character to test */ )
This routine tests whether c is an upper-case letter.
ctype.h
Non-zero if and only if c is an upper-case letter.
isxdigit( ) - test whether a character is a hexadecimal digit (ANSI)
int isxdigit ( int c /* character to test */ )
This routine tests whether c is a hexadecimal-digit character.
ctype.h
Non-zero if and only if c is a hexadecimal digit.
tolower( ) - convert an upper-case letter to its lower-case equivalent (ANSI)
int tolower ( int c /* character to convert */ )
This routine converts an upper-case letter to the corresponding lower-case letter.
ctype.h
If c is an upper-case letter, it returns the lower-case equivalent; otherwise, it returns the argument unchanged.
toupper( ) - convert a lower-case letter to its upper-case equivalent (ANSI)
int toupper ( int c /* character to convert */ )
This routine converts a lower-case letter to the corresponding upper-case letter.
ctype.h
If c is a lower-case letter, it returns the upper-case equivalent; otherwise, it returns the argument unchanged.