Link to home
Start Free TrialLog in
Avatar of joebig
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.
Avatar of ozo
ozo
Flag of United States of America image

SYNOPSIS

     #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.
ASKER CERTIFIED SOLUTION
Avatar of rbr
rbr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of joebig
joebig

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.