Solved

isspace()

Posted on 1997-12-21
3
459 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:joebig
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1256817
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.
0
 
LVL 10

Accepted Solution

by:
rbr earned 50 total points
ID: 1256818
isspace test if a character is a white-space. (space,tab (both horizontal and vertical), CR,LF,FF)
0
 

Author Comment

by:joebig
ID: 1256819
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.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question