xref: /csrg-svn/lib/libc/locale/ispunct.3 (revision 61137)
1*61137Sbostic.\" Copyright (c) 1991, 1993
2*61137Sbostic.\"	The Regents of the University of California.  All rights reserved.
348908Scael.\"
450305Sbostic.\" This code is derived from software contributed to Berkeley by
550305Sbostic.\" the American National Standards Committee X3, on Information
650305Sbostic.\" Processing Systems.
750305Sbostic.\"
848908Scael.\" %sccs.include.redist.man%
948908Scael.\"
10*61137Sbostic.\"	@(#)ispunct.3	8.1 (Berkeley) 06/04/93
1148908Scael.\"
1248908Scael.Dd
1348908Scael.Dt ISPUNCT 3
1448908Scael.Os
1548908Scael.Sh NAME
1648908Scael.Nm ispunct
1748908Scael.Nd punctuation character test
1848908Scael.Sh SYNOPSIS
1948908Scael.Fd #include <ctype.h>
2048908Scael.Ft int
2151387Sbostic.Fn ispunct "int c";
2248908Scael.Sh DESCRIPTION
2348908ScaelThe
2448908Scael.Fn ispunct
2551409Sbosticfunction tests for any printing character except for space (' ') or a
2648908Scaelcharacter for which
2748908Scael.Xr isalnum 3
2848908Scaelis true.
2951409SbosticIn the ASCII character set, this includes the following characters:
3051409Sbostic.sp
3151409Sbostic.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
3251409Sbostic.It \&041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%''
3351409Sbostic.It \&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*''
3451409Sbostic.It \&053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' \t057\ ``/''
3551409Sbostic.It \&072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' \t076\ ``>''
3651409Sbostic.It \&077\ ``?'' \t100\ ``@'' \t133\ ``['' \t134\ ``\'' \t135\ ``]''
3751409Sbostic.It \&136\ ``^'' \t137\ ``_'' \t140\ ```'' \t173\ ``{'' \t174\ ``|''
3851409Sbostic.It \&175\ ``}'' \t176\ ``~''
3951409Sbostic.El
4048908Scael.Sh RETURN VALUES
4148908ScaelThe
4248908Scael.Fn ispunct
4351387Sbosticfunction returns zero if the character tests false and
4448908Scaelreturns non-zero if the character tests true.
4548908Scael.Sh SEE ALSO
4651387Sbostic.Xr ctype 3 ,
4748908Scael.Xr ascii 7
4848908Scael.Sh STANDARDS
4948908ScaelThe
5048908Scael.Fn ispunct
5148908Scaelfunction conforms to
5248908Scael.St -ansiC .
53