Commit | Line | Data |
---|---|---|
71598620 CL |
1 | .\" Copyright (c) 1991 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
043368e6 KB |
4 | .\" This code is derived from software contributed to Berkeley by |
5 | .\" the American National Standards Committee X3, on Information | |
6 | .\" Processing Systems. | |
7 | .\" | |
71598620 CL |
8 | .\" %sccs.include.redist.man% |
9 | .\" | |
043368e6 | 10 | .\" @(#)isspace.3 5.2 (Berkeley) %G% |
71598620 CL |
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 | |
23 | The | |
24 | .Fn isspace | |
25 | function tests for the standard white-space characters | |
26 | .\" or for any | |
27 | .\" of an implementation-defined set of characters | |
28 | for which | |
29 | .Xr isalnum 3 | |
30 | is false. | |
31 | The standard white-space characters are the following: | |
32 | .Bl -tag -width xxxxx -offset indent | |
33 | .It Sq \0 | |
34 | Space character. | |
35 | .It Li \ef | |
36 | Form feed. | |
37 | .It Li \en | |
38 | New-line. | |
39 | .It Li \er | |
40 | Carriage return. | |
41 | .It Li \et | |
42 | Horizontal tab. | |
43 | .It Li \ev | |
44 | And vertical tab. | |
45 | .El | |
46 | .Pp | |
47 | In the | |
48 | .Em ``C'' | |
49 | locale, | |
50 | .Fn isspace | |
51 | returns true only for the standard white-space characters. | |
52 | .Sh RETURN VALUES | |
53 | The | |
54 | .Fn isspace | |
55 | macro returns zero if the character tests false and | |
56 | returns 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 | |
75 | The | |
76 | .Fn isspace | |
77 | function conforms to | |
78 | .St -ansiC . |