Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

isspace(3) [netbsd man page]

ISSPACE(3)						   BSD Library Functions Manual 						ISSPACE(3)

isspace -- white-space character test LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <ctype.h> int isspace(int c); DESCRIPTION
The isspace() function tests for the standard white-space characters for which isalnum(3) is false. The standard white-space characters are the following: ' ' Space character. f Form feed. New-line. Carriage return. Horizontal tab. v And vertical tab. In the ``C'' locale, isspace() returns true only for the standard white-space characters. RETURN VALUES
The isspace() function returns zero if the character tests false and returns non-zero if the character tests true. SEE ALSO
ctype(3), isalnum(3), isalpha(3), isascii(3), isblank(3), iscntrl(3), isdigit(3), isgraph(3), islower(3), isprint(3), ispunct(3), isupper(3), isxdigit(3), stdio(3), toascii(3), tolower(3), toupper(3), ascii(7) STANDARDS
The isspace() function conforms to ANSI X3.159-1989 (``ANSI C89''). CAVEATS
The argument to isspace() must be EOF or representable as an unsigned char; otherwise, the behavior is undefined. See the CAVEATS section of ctype(3) for more details. BSD
April 17, 2008 BSD

Check Out this Related Man Page

CTYPE(3)						   BSD Library Functions Manual 						  CTYPE(3)

digittoint, isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, ishexnumber, isideogram, islower, isnumber, isphonogram, isprint, ispunct, isrune, isspace, isspecial, isupper, isxdigit, toascii, tolower, toupper -- character classification macros LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <ctype.h> int digittoint(int c); int isalnum(int c); int isalpha(int c); int isascii(int c); int iscntrl(int c); int isdigit(int c); int isgraph(int c); int ishexnumber(int c); int isideogram(int c); int islower(int c); int isnumber(int c); int isphonogram(int c); int isspecial(int c); int isprint(int c); int ispunct(int c); int isrune(int c); int isspace(int c); int isupper(int c); int isxdigit(int c); int toascii(int c); int tolower(int c); int toupper(int c); DESCRIPTION
The above functions perform character tests and conversions on the integer c. They are available as macros, defined in the include file <ctype.h>, or as true functions in the C library. See the specific manual pages for more information. Extended locale versions of these functions are documented in ctype_l(3). See xlocale(3) for more information. SEE ALSO
digittoint(3), isalnum(3), isalpha(3), isascii(3), isblank(3), iscntrl(3), isdigit(3), isgraph(3), isideogram(3), islower(3), isphonogram(3), isprint(3), ispunct(3), isrune(3), isspace(3), isspecial(3), isupper(3), isxdigit(3), toascii(3), tolower(3), toupper(3), wctype(3), ascii(7), ctype_l(3) STANDARDS
These functions, except for digittoint(), isascii(), ishexnumber(), isideogram(), isnumber(), isphonogram(), isrune(), isspecial() and toascii(), conform to ISO/IEC 9899:1990 (``ISO C90''). BSD
March 30, 2004 BSD
Man Page

9 More Discussions You Might Find Interesting

1. Programming


Hello, Does somebody know what is happening here? This piece of code should skip leading spaces (and others). If isspace encounters a non space character, it doesn't return false. If we analyze the " isspace(*cs_str);" in the debugger, it returns 0. If we check the value in b_space after... (4 Replies)
Discussion started by: Micky
4 Replies

2. Shell Programming and Scripting

perl array question from going through hash

suppose my @{$data1{$callid}}; cotains one two three three five six one two three of random patterns but each item is separated by white space or tab, Below code extract and get rid of the whitespace perfectly so that it shows now like this onetwothree threefivesix... (2 Replies)
Discussion started by: hankooknara
2 Replies

3. UNIX for Dummies Questions & Answers

SED with White Space

Dear Members, Suppose i have a variable test which stores a string as below: test='John drives+++++++++a+++++car' now i want to use sed on the above variable and replace + with a white space, so that i get echo $test should give me 'john drives a car' Between... (1 Reply)
Discussion started by: sandeep_1105
1 Replies

4. UNIX for Dummies Questions & Answers

Problem with Trimming of white space

Dear Members, Following is the code which i am using: integer i=7 while ((i <= 10 )); do param=`echo $TEST_OUT | cut -d"^" -f$i` a=`echo ${param}` echo `echo $a | sed 's/+/ /g'` (( i = i + 1)); done From the above code TEST_OUT is a variable which has the following value: ... (1 Reply)
Discussion started by: sandeep_1105
1 Replies

5. UNIX for Dummies Questions & Answers

Replace only first found white spaces with some other characters

Anybody can help me How can I replace only four first white spaces with , or any other characters aaaa 08/31/2004 08/31/2009 permanent Logical Processors in System: 64 bedad 08/16/2001 08/15/2011 permanent Logical Processors in System: 64 badnv14 05/31/2008 05/30/2013 permanent Logical... (5 Replies)
Discussion started by: pareshan
5 Replies

6. Shell Programming and Scripting

Matching white space through Grep

Hello All, I am trying to match white space in patterns through - Grep I tried ] & ] but none of them worked. Then I tried Perl extension '\s' and it worked. So just wanted to know if ] & ] are still supported or have they become deprecated. However they have been mentioned in the... (3 Replies)
Discussion started by: paragkalra
3 Replies

7. Shell Programming and Scripting

Regular expression -tab

I have a white-spaces delimited text file. I want to put a tab (\t) between the first and second column (or after the first white-space) and untouch the rest of the white-spaces. Would you let me know the best way to do it. LA (9 Replies)
Discussion started by: Lucky Ali
9 Replies

8. Shell Programming and Scripting

Bash - read white spaces

Hello! I have one problem with my bash script - I would like to be able to read white space characters from stdin (for example single " ") - can I acomplish that somehow? I need to read only one character at the time, so I use read -s -n 1 var but it doesn't work for whitespaces apparently. ... (3 Replies)
Discussion started by: xqwzts
3 Replies

9. Shell Programming and Scripting

Remove of white space when you have multiple column

i have file in which i want to remove white space from each column where ever it exist there is white space at the end of line. i know how to remove white space if i have only 1 column, but i have multiple columns and white space can be in any column. sed 's/ *$//' file ath-miRf10005-akr... (5 Replies)
Discussion started by: mirwasim
5 Replies