isprint. McGraw-Hill The Complete Reference Fourth Edition
Advertisement
Advertisement
726
C + + : T h e C o m p l e t e R e f e r e n c e
The islower( ) function returns nonzero if ch is a lowercase letter; otherwise zero is returned.
A related function is isupper( ).
isprint
#include <cctype> int isprint(int ch);
The isprint( ) function returns nonzero if ch is a printable character, including a space; otherwise zero is returned. Printable characters are often in the range 0x20 through 0x7E.
Related functions are isalnum( ), isalpha( ), iscntrl( ), isdigit( ), isgraph( ), ispunct( ), and isspace( ).
ispunct
#include <cctype> int ispunct(int ch);
The ispunct( ) function returns nonzero if ch is a punctuation character; otherwise zero is returned. The term "punctuation," as defined by this function, includes all printing characters that are neither alphanumeric nor a space.
Related functions are isalnum( ), isalpha( ), iscntrl( ), isdigit( ), isgraph( ), and
isspace( )
.
isspace
#include <cctype> int isspace(int ch);
The isspace( ) function returns nonzero if ch is either a space, horizontal tab, vertical tab, formfeed, carriage return, or newline character; otherwise zero is returned.
Related functions are isalnum( ), isalpha( ), iscntrl( ), isdigit( ), isgraph( ), and
ispunct( )
.
Download
Advertisement