joebig
asked on
isspace()
Please describe isspace()function. I am doing a character
count function with getchar. The function reads strings seperated by '\n'. Need to understand how the
'\n' character can be returned without initilizing counter.
count function with getchar. The function reads strings seperated by '\n'. Need to understand how the
'\n' character can be returned without initilizing counter.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks rbr. I do not understand all this point business though.
Are they points you all earn or are they points I use up by
asking questions.
You will be hearing from me again as I work my way through
school.
Are they points you all earn or are they points I use up by
asking questions.
You will be hearing from me again as I work my way through
school.
#include <ctype.h>
int isspace(int c);
DESCRIPTION
The isspace function tests for any character that is a standard white-space character or is
one of an implementation-defined set of characters for which isalnum is false. The standard
white-space characters are the following: space (' '), form feed ('\f'), new-line ('\n'),
carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v'). In the "C" locale,
isspace returns true only for the standard white-space characters.