10d5acd74SJohn Marino.\" Copyright (c) 1991, 1993 20d5acd74SJohn Marino.\" The Regents of the University of California. All rights reserved. 30d5acd74SJohn Marino.\" 40d5acd74SJohn Marino.\" This code is derived from software contributed to Berkeley by 50d5acd74SJohn Marino.\" the American National Standards Committee X3, on Information 60d5acd74SJohn Marino.\" Processing Systems. 70d5acd74SJohn Marino.\" 80d5acd74SJohn Marino.\" Redistribution and use in source and binary forms, with or without 90d5acd74SJohn Marino.\" modification, are permitted provided that the following conditions 100d5acd74SJohn Marino.\" are met: 110d5acd74SJohn Marino.\" 1. Redistributions of source code must retain the above copyright 120d5acd74SJohn Marino.\" notice, this list of conditions and the following disclaimer. 130d5acd74SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright 140d5acd74SJohn Marino.\" notice, this list of conditions and the following disclaimer in the 150d5acd74SJohn Marino.\" documentation and/or other materials provided with the distribution. 16*c66c7e2fSzrj.\" 3. Neither the name of the University nor the names of its contributors 170d5acd74SJohn Marino.\" may be used to endorse or promote products derived from this software 180d5acd74SJohn Marino.\" without specific prior written permission. 190d5acd74SJohn Marino.\" 200d5acd74SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 210d5acd74SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 220d5acd74SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 230d5acd74SJohn Marino.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 240d5acd74SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 250d5acd74SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 260d5acd74SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 270d5acd74SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 280d5acd74SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 290d5acd74SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 300d5acd74SJohn Marino.\" SUCH DAMAGE. 310d5acd74SJohn Marino.\" 320d5acd74SJohn Marino.\" @(#)isprint.3 8.1 (Berkeley) 6/4/93 330d5acd74SJohn Marino.\" $FreeBSD: head/lib/libc/locale/isprint.3 233992 2012-04-07 09:05:30Z joel $ 340d5acd74SJohn Marino.\" 354e81684dSSascha Wildner.Dd December 25, 2013 360d5acd74SJohn Marino.Dt ISPRINT 3 370d5acd74SJohn Marino.Os 380d5acd74SJohn Marino.Sh NAME 39382f042fSSascha Wildner.Nm isprint , 40382f042fSSascha Wildner.Nm isprint_l 410d5acd74SJohn Marino.Nd printing character test (space character inclusive) 420d5acd74SJohn Marino.Sh LIBRARY 430d5acd74SJohn Marino.Lb libc 440d5acd74SJohn Marino.Sh SYNOPSIS 450d5acd74SJohn Marino.In ctype.h 460d5acd74SJohn Marino.Ft int 470d5acd74SJohn Marino.Fn isprint "int c" 48382f042fSSascha Wildner.Ft int 494e81684dSSascha Wildner.Fn isprint_l "int c" "locale_t locale" 500d5acd74SJohn Marino.Sh DESCRIPTION 510d5acd74SJohn MarinoThe 520d5acd74SJohn Marino.Fn isprint 534e81684dSSascha Wildnerand 544e81684dSSascha Wildner.Fn isprint_l 554e81684dSSascha Wildnerfunctions test for any printing character, including space 560d5acd74SJohn Marino.Pq Ql "\ " . 570d5acd74SJohn MarinoThe value of the argument must be representable as an 580d5acd74SJohn Marino.Vt "unsigned char" 590d5acd74SJohn Marinoor the value of 600d5acd74SJohn Marino.Dv EOF . 610d5acd74SJohn Marino.Pp 620d5acd74SJohn MarinoIn the ASCII character set, this includes the following characters 630d5acd74SJohn Marino(with their numeric values shown in octal): 640d5acd74SJohn Marino.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ 650d5acd74SJohn Marino.It "\&040\ sp" Ta "041\ ``!''" Ta "042\ ``""''" Ta "043\ ``#''" Ta "044\ ``$''" 660d5acd74SJohn Marino.It "\&045\ ``%''" Ta "046\ ``&''" Ta "047\ ``'''" Ta "050\ ``(''" Ta "051\ ``)''" 670d5acd74SJohn Marino.It "\&052\ ``*''" Ta "053\ ``+''" Ta "054\ ``,''" Ta "055\ ``-''" Ta "056\ ``.''" 680d5acd74SJohn Marino.It "\&057\ ``/''" Ta "060\ ``0''" Ta "061\ ``1''" Ta "062\ ``2''" Ta "063\ ``3''" 690d5acd74SJohn Marino.It "\&064\ ``4''" Ta "065\ ``5''" Ta "066\ ``6''" Ta "067\ ``7''" Ta "070\ ``8''" 700d5acd74SJohn Marino.It "\&071\ ``9''" Ta "072\ ``:''" Ta "073\ ``;''" Ta "074\ ``<''" Ta "075\ ``=''" 710d5acd74SJohn Marino.It "\&076\ ``>''" Ta "077\ ``?''" Ta "100\ ``@''" Ta "101\ ``A''" Ta "102\ ``B''" 720d5acd74SJohn Marino.It "\&103\ ``C''" Ta "104\ ``D''" Ta "105\ ``E''" Ta "106\ ``F''" Ta "107\ ``G''" 730d5acd74SJohn Marino.It "\&110\ ``H''" Ta "111\ ``I''" Ta "112\ ``J''" Ta "113\ ``K''" Ta "114\ ``L''" 740d5acd74SJohn Marino.It "\&115\ ``M''" Ta "116\ ``N''" Ta "117\ ``O''" Ta "120\ ``P''" Ta "121\ ``Q''" 750d5acd74SJohn Marino.It "\&122\ ``R''" Ta "123\ ``S''" Ta "124\ ``T''" Ta "125\ ``U''" Ta "126\ ``V''" 760d5acd74SJohn Marino.It "\&127\ ``W''" Ta "130\ ``X''" Ta "131\ ``Y''" Ta "132\ ``Z''" Ta "133\ ``[''" 770d5acd74SJohn Marino.It "\&134\ ``\e\|''" Ta "135\ ``]''" Ta "136\ ``^''" Ta "137\ ``_''" Ta "140\ ```''" 780d5acd74SJohn Marino.It "\&141\ ``a''" Ta "142\ ``b''" Ta "143\ ``c''" Ta "144\ ``d''" Ta "145\ ``e''" 790d5acd74SJohn Marino.It "\&146\ ``f''" Ta "147\ ``g''" Ta "150\ ``h''" Ta "151\ ``i''" Ta "152\ ``j''" 800d5acd74SJohn Marino.It "\&153\ ``k''" Ta "154\ ``l''" Ta "155\ ``m''" Ta "156\ ``n''" Ta "157\ ``o''" 810d5acd74SJohn Marino.It "\&160\ ``p''" Ta "161\ ``q''" Ta "162\ ``r''" Ta "163\ ``s''" Ta "164\ ``t''" 820d5acd74SJohn Marino.It "\&165\ ``u''" Ta "166\ ``v''" Ta "167\ ``w''" Ta "170\ ``x''" Ta "171\ ``y''" 830d5acd74SJohn Marino.It "\&172\ ``z''" Ta "173\ ``{''" Ta "174\ ``|''" Ta "175\ ``}''" Ta "176\ ``~''" 840d5acd74SJohn Marino.El 85382f042fSSascha Wildner.Pp 864e81684dSSascha WildnerThe _l-suffixed version takes an explicit 874e81684dSSascha Wildner.Fa locale 884e81684dSSascha Wildnerargument, whereas the 89382f042fSSascha Wildnernon-suffixed version uses the current global or per-thread locale. 900d5acd74SJohn Marino.Sh RETURN VALUES 910d5acd74SJohn MarinoThe 920d5acd74SJohn Marino.Fn isprint 934e81684dSSascha Wildnerand 944e81684dSSascha Wildner.Fn isprint_l 954e81684dSSascha Wildnerfunctions return zero if the character tests false and 960d5acd74SJohn Marinoreturns non-zero if the character tests true. 970d5acd74SJohn Marino.Sh COMPATIBILITY 980d5acd74SJohn MarinoThe 990d5acd74SJohn Marino.Bx 4.4 1000d5acd74SJohn Marinoextension of accepting arguments outside of the range of the 1010d5acd74SJohn Marino.Vt "unsigned char" 1020d5acd74SJohn Marinotype in locales with large character sets is considered obsolete 1030d5acd74SJohn Marinoand may not be supported in future releases. 1040d5acd74SJohn MarinoThe 1050d5acd74SJohn Marino.Fn iswprint 1064e81684dSSascha Wildnerand 1074e81684dSSascha Wildner.Fn iswprint_l 1084e81684dSSascha Wildnerfunctions should be used instead. 1090d5acd74SJohn Marino.Sh SEE ALSO 1100d5acd74SJohn Marino.Xr ctype 3 , 111382f042fSSascha Wildner.Xr ctype_l 3 , 1120d5acd74SJohn Marino.Xr iswprint 3 , 1134e81684dSSascha Wildner.Xr iswprint_l 3 , 114703b8508SSascha Wildner.Xr xlocale 3 , 1150d5acd74SJohn Marino.Xr ascii 7 1160d5acd74SJohn Marino.Sh STANDARDS 1170d5acd74SJohn MarinoThe 1180d5acd74SJohn Marino.Fn isprint 1190d5acd74SJohn Marinofunction conforms to 1200d5acd74SJohn Marino.St -isoC . 1214e81684dSSascha WildnerThe 1224e81684dSSascha Wildner.Fn isprint_l 1234e81684dSSascha Wildnerfunction conforms to 1244e81684dSSascha Wildner.St -p1003.1-2008 . 125