1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" %sccs.include.redist.man% 9.\" 10.\" @(#)ispunct.3 8.1 (Berkeley) 06/04/93 11.\" 12.Dd 13.Dt ISPUNCT 3 14.Os 15.Sh NAME 16.Nm ispunct 17.Nd punctuation character test 18.Sh SYNOPSIS 19.Fd #include <ctype.h> 20.Ft int 21.Fn ispunct "int c"; 22.Sh DESCRIPTION 23The 24.Fn ispunct 25function tests for any printing character except for space (' ') or a 26character for which 27.Xr isalnum 3 28is true. 29In the ASCII character set, this includes the following characters: 30.sp 31.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ 32.It \&041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%'' 33.It \&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*'' 34.It \&053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' \t057\ ``/'' 35.It \&072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' \t076\ ``>'' 36.It \&077\ ``?'' \t100\ ``@'' \t133\ ``['' \t134\ ``\'' \t135\ ``]'' 37.It \&136\ ``^'' \t137\ ``_'' \t140\ ```'' \t173\ ``{'' \t174\ ``|'' 38.It \&175\ ``}'' \t176\ ``~'' 39.El 40.Sh RETURN VALUES 41The 42.Fn ispunct 43function returns zero if the character tests false and 44returns non-zero if the character tests true. 45.Sh SEE ALSO 46.Xr ctype 3 , 47.Xr ascii 7 48.Sh STANDARDS 49The 50.Fn ispunct 51function conforms to 52.St -ansiC . 53