1.\" $NetBSD: isspace.3,v 1.4 1995/02/27 04:35:06 cgd Exp $ 2.\" 3.\" Copyright (c) 1991 The Regents of the University of California. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to Berkeley by 7.\" the American National Standards Committee X3, on Information 8.\" Processing Systems. 9.\" 10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 13.\" 1. Redistributions of source code must retain the above copyright 14.\" notice, this list of conditions and the following disclaimer. 15.\" 2. Redistributions in binary form must reproduce the above copyright 16.\" notice, this list of conditions and the following disclaimer in the 17.\" documentation and/or other materials provided with the distribution. 18.\" 3. All advertising materials mentioning features or use of this software 19.\" must display the following acknowledgement: 20.\" This product includes software developed by the University of 21.\" California, Berkeley and its contributors. 22.\" 4. Neither the name of the University nor the names of its contributors 23.\" may be used to endorse or promote products derived from this software 24.\" without specific prior written permission. 25.\" 26.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36.\" SUCH DAMAGE. 37.\" 38.\" @(#)isspace.3 5.3 (Berkeley) 7/31/91 39.\" 40.Dd July 31, 1991 41.Dt ISSPACE 3 42.Os 43.Sh NAME 44.Nm isspace 45.Nd white-space character test 46.Sh SYNOPSIS 47.Fd #include <ctype.h> 48.Ft int 49.Fn isspace "int c" 50.Sh DESCRIPTION 51The 52.Fn isspace 53function tests for the standard white-space characters 54.\" or for any 55.\" of an implementation-defined set of characters 56for which 57.Xr isalnum 3 58is false. 59The standard white-space characters are the following: 60.Pp 61.Bl -tag -width xxxxx -offset indent -compact 62.It Sq \0 63Space character. 64.It Li \ef 65Form feed. 66.It Li \en 67New-line. 68.It Li \er 69Carriage return. 70.It Li \et 71Horizontal tab. 72.It Li \ev 73And vertical tab. 74.El 75.Pp 76In the 77.Em ``C'' 78locale, 79.Fn isspace 80returns true only for the standard white-space characters. 81.Sh RETURN VALUES 82The 83.Fn isspace 84macro returns zero if the character tests false and 85returns non-zero if the character tests true. 86.Sh SEE ALSO 87.Xr isalnum 3 , 88.Xr isalpha 3 , 89.Xr isascii 3 , 90.Xr isblank 3 , 91.Xr iscntrl 3 , 92.Xr isdigit 3 , 93.Xr isgraph 3 , 94.Xr islower 3 , 95.Xr isprint 3 , 96.Xr ispunct 3 , 97.Xr isupper 3 , 98.Xr isxdigit 3 , 99.Xr toascii 3 , 100.Xr tolower 3 , 101.Xr toupper 3 , 102.Xr stdio 3 , 103.Xr ascii 7 104.Sh STANDARDS 105The 106.Fn isspace 107function conforms to 108.St -ansiC . 109