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