Solved

isspace()

Posted on 1997-12-21
3
467 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
memory leak detection 9 101
C Language combined operators 28 124
C Programming - If Statement 8 83
Windows Server 2012  Backup - HyperV host 18 94
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

726 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