1.\" Copyright (c) 1991 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" %sccs.include.redist.man% 9.\" 10.\" @(#)isspace.3 5.2 (Berkeley) 06/29/91 11.\" 12.Dd 13.Dt ISSPACE 3 14.Os 15.Sh NAME 16.Nm isspace 17.Nd white-space character test 18.Sh SYNOPSIS 19.Fd #include <ctype.h> 20.Ft int 21.Fn isspace "int c" 22.Sh DESCRIPTION 23The 24.Fn isspace 25function tests for the standard white-space characters 26.\" or for any 27.\" of an implementation-defined set of characters 28for which 29.Xr isalnum 3 30is false. 31The standard white-space characters are the following: 32.Bl -tag -width xxxxx -offset indent 33.It Sq \0 34Space character. 35.It Li \ef 36Form feed. 37.It Li \en 38New-line. 39.It Li \er 40Carriage return. 41.It Li \et 42Horizontal tab. 43.It Li \ev 44And vertical tab. 45.El 46.Pp 47In the 48.Em ``C'' 49locale, 50.Fn isspace 51returns true only for the standard white-space characters. 52.Sh RETURN VALUES 53The 54.Fn isspace 55macro returns zero if the character tests false and 56returns non-zero if the character tests true. 57.Sh SEE ALSO 58.Xr isascii 3 , 59.Xr isalnum 3 , 60.Xr isalpha 3 , 61.Xr iscntrl 3 , 62.Xr isdigit 3 , 63.Xr isgraph 3 , 64.Xr islower 3 , 65.Xr isprint 3 , 66.Xr ispunct 3 , 67.Xr isupper 3 , 68.Xr isxdigit 3 , 69.Xr toascii 3 , 70.Xr tolower 3 , 71.Xr toupper 3 , 72.Xr stdio 3 73.Xr ascii 7 74.Sh STANDARDS 75The 76.Fn isspace 77function conforms to 78.St -ansiC . 79