?
Solved

isspace()

Posted on 1997-12-21
3
Medium Priority
?
484 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 200 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

Independent Software Vendors: 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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them 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.
Suggested Courses

764 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