xref: /original-bsd/lib/libc/locale/ispunct.3 (revision ba762ddc)
1.\" Copyright (c) 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\"	@(#)ispunct.3	5.1 (Berkeley) 05/02/91
5.\" %sccs.include.redist.man%
6.\"
7.\"     @(#)ispunct.3	5.1 (Berkeley) 05/02/91
8.\"
9.Dd
10.Dt ISPUNCT 3
11.Os
12.Sh NAME
13.Nm ispunct
14.Nd punctuation character test
15.Sh SYNOPSIS
16.Fd #include <ctype.h>
17.Ft int
18.Fn ispunct "int c"
19.Sh DESCRIPTION
20The
21.Fn ispunct
22function tests for any printing character except space (' ') or a
23character for which
24.Xr isalnum 3
25is true.
26.Sh RETURN VALUES
27The
28.Fn ispunct
29macro returns zero if the character tests false and
30returns non-zero if the character tests true.
31.Sh SEE ALSO
32.Xr isascii 3 ,
33.Xr isalnum 3 ,
34.Xr isalpha 3 ,
35.Xr iscntrl 3 ,
36.Xr isdigit 3 ,
37.Xr isgraph 3 ,
38.Xr islower 3 ,
39.Xr isprint 3 ,
40.Xr isspace 3 ,
41.Xr isupper 3 ,
42.Xr isxdigit 3 ,
43.Xr toascii 3 ,
44.Xr tolower 3 ,
45.Xr toupper 3 ,
46.Xr stdio 3
47.Xr ascii 7
48.Sh STANDARDS
49The
50.Fn ispunct
51function conforms to
52.St -ansiC .
53