1*61137Sbostic.\" Copyright (c) 1991, 1993 2*61137Sbostic.\" The Regents of the University of California. All rights reserved. 348907Scael.\" 450304Sbostic.\" This code is derived from software contributed to Berkeley by 550304Sbostic.\" the American National Standards Committee X3, on Information 650304Sbostic.\" Processing Systems. 750304Sbostic.\" 848907Scael.\" %sccs.include.redist.man% 948907Scael.\" 10*61137Sbostic.\" @(#)isprint.3 8.1 (Berkeley) 06/04/93 1148907Scael.\" 1248907Scael.Dd 1348907Scael.Dt ISPRINT 3 1448907Scael.Os 1548907Scael.Sh NAME 1648907Scael.Nm isprint 1748907Scael.Nd printing character test (space character inclusive) 1848907Scael.Sh SYNOPSIS 1948907Scael.Fd #include <ctype.h> 2048907Scael.Ft int 2151387Sbostic.Fn isprint "int c"; 2248907Scael.Sh DESCRIPTION 2348907ScaelThe 2448907Scael.Fn isprint 2548907Scaelfunction tests for any printing character including space (' '). 2651409SbosticIn the ASCII character set, this includes the following characters: 2751409Sbostic.sp 2851409Sbostic.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ 2951409Sbostic.It \&040\ sp \t041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' 3051409Sbostic.It \&045\ ``%'' \t046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' 3151409Sbostic.It \&052\ ``*'' \t053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' 3251409Sbostic.It \&057\ ``/'' \t060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' 3351409Sbostic.It \&064\ ``4'' \t065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' 3451409Sbostic.It \&071\ ``9'' \t072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' 3551409Sbostic.It \&076\ ``>'' \t077\ ``?'' \t100\ ``@'' \t101\ ``A'' \t102\ ``B'' 3651409Sbostic.It \&103\ ``C'' \t104\ ``D'' \t105\ ``E'' \t106\ ``F'' \t107\ ``G'' 3751409Sbostic.It \&110\ ``H'' \t111\ ``I'' \t112\ ``J'' \t113\ ``K'' \t114\ ``L'' 3851409Sbostic.It \&115\ ``M'' \t116\ ``N'' \t117\ ``O'' \t120\ ``P'' \t121\ ``Q'' 3951409Sbostic.It \&122\ ``R'' \t123\ ``S'' \t124\ ``T'' \t125\ ``U'' \t126\ ``V'' 4051409Sbostic.It \&127\ ``W'' \t130\ ``X'' \t131\ ``Y'' \t132\ ``Z'' \t133\ ``['' 4151409Sbostic.It \&134\ ``\'' \t135\ ``]'' \t136\ ``^'' \t137\ ``_'' \t140\ ```'' 4251409Sbostic.It \&141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e'' 4351409Sbostic.It \&146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j'' 4451409Sbostic.It \&153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' \t157\ ``o'' 4551409Sbostic.It \&160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' \t164\ ``t'' 4651409Sbostic.It \&165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y'' 4751409Sbostic.It \&172\ ``z'' \t173\ ``{'' \t174\ ``|'' \t175\ ``}'' \t176\ ``~'' 4851409Sbostic.El 4948907Scael.Sh RETURN VALUES 5048907ScaelThe 5148907Scael.Fn isprint 5251387Sbosticfunction returns zero if the character tests false and 5348907Scaelreturns non-zero if the character tests true. 5448907Scael.Sh SEE ALSO 5551387Sbostic.Xr ctype 3 , 5648907Scael.Xr ascii 7 5748907Scael.Sh STANDARDS 5848907ScaelThe 5948907Scael.Fn isprint 6048907Scaelfunction conforms to 6148907Scael.St -ansiC . 62