xref: /original-bsd/lib/libc/locale/ispunct.3 (revision 22f7d534)
1*22f7d534Sbostic.\" Copyright (c) 1991, 1993
2*22f7d534Sbostic.\"	The Regents of the University of California.  All rights reserved.
34a3b3030Scael.\"
405c89e53Sbostic.\" This code is derived from software contributed to Berkeley by
505c89e53Sbostic.\" the American National Standards Committee X3, on Information
605c89e53Sbostic.\" Processing Systems.
705c89e53Sbostic.\"
84a3b3030Scael.\" %sccs.include.redist.man%
94a3b3030Scael.\"
10*22f7d534Sbostic.\"	@(#)ispunct.3	8.1 (Berkeley) 06/04/93
114a3b3030Scael.\"
124a3b3030Scael.Dd
134a3b3030Scael.Dt ISPUNCT 3
144a3b3030Scael.Os
154a3b3030Scael.Sh NAME
164a3b3030Scael.Nm ispunct
174a3b3030Scael.Nd punctuation character test
184a3b3030Scael.Sh SYNOPSIS
194a3b3030Scael.Fd #include <ctype.h>
204a3b3030Scael.Ft int
21a8b77666Sbostic.Fn ispunct "int c";
224a3b3030Scael.Sh DESCRIPTION
234a3b3030ScaelThe
244a3b3030Scael.Fn ispunct
2572dbba0eSbosticfunction tests for any printing character except for space (' ') or a
264a3b3030Scaelcharacter for which
274a3b3030Scael.Xr isalnum 3
284a3b3030Scaelis true.
2972dbba0eSbosticIn the ASCII character set, this includes the following characters:
3072dbba0eSbostic.sp
3172dbba0eSbostic.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
3272dbba0eSbostic.It \&041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%''
3372dbba0eSbostic.It \&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*''
3472dbba0eSbostic.It \&053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' \t057\ ``/''
3572dbba0eSbostic.It \&072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' \t076\ ``>''
3672dbba0eSbostic.It \&077\ ``?'' \t100\ ``@'' \t133\ ``['' \t134\ ``\'' \t135\ ``]''
3772dbba0eSbostic.It \&136\ ``^'' \t137\ ``_'' \t140\ ```'' \t173\ ``{'' \t174\ ``|''
3872dbba0eSbostic.It \&175\ ``}'' \t176\ ``~''
3972dbba0eSbostic.El
404a3b3030Scael.Sh RETURN VALUES
414a3b3030ScaelThe
424a3b3030Scael.Fn ispunct
43a8b77666Sbosticfunction returns zero if the character tests false and
444a3b3030Scaelreturns non-zero if the character tests true.
454a3b3030Scael.Sh SEE ALSO
46a8b77666Sbostic.Xr ctype 3 ,
474a3b3030Scael.Xr ascii 7
484a3b3030Scael.Sh STANDARDS
494a3b3030ScaelThe
504a3b3030Scael.Fn ispunct
514a3b3030Scaelfunction conforms to
524a3b3030Scael.St -ansiC .
53