int isprint(int c);
This function returns true if c is a printing character. Printing characters include all the graphic characters, plus the space character.