Solved

isspace()

Posted on 1997-12-21
3
434 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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 and use conditional statements in the C programming language.

707 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now