1*61137Sbostic.\" Copyright (c) 1991, 1993 2*61137Sbostic.\" The Regents of the University of California. All rights reserved. 348905Scael.\" 450304Sbostic.\" This code is derived from software contributed to Berkeley by 550304Sbostic.\" the American National Standards Committee X3, on Information 650304Sbostic.\" Processing Systems. 750304Sbostic.\" 848905Scael.\" %sccs.include.redist.man% 948905Scael.\" 10*61137Sbostic.\" @(#)iscntrl.3 8.1 (Berkeley) 06/04/93 1148905Scael.\" 1248905Scael.Dd 1348905Scael.Dt ISCNTRL 3 1448905Scael.Os 1548905Scael.Sh NAME 1648905Scael.Nm iscntrl 1748905Scael.Nd control character test 1848905Scael.Sh SYNOPSIS 1948905Scael.Fd #include <ctype.h> 2048905Scael.Ft int 2151387Sbostic.Fn iscntrl "int c"; 2248905Scael.Sh DESCRIPTION 2348905ScaelThe 2448905Scael.Fn iscntrl 2548905Scaelfunction tests for any control character. 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 \&000\ nul \t001\ soh \t002\ stx \t003\ etx \t004\ eot 3051409Sbostic.It \&005\ enq \t006\ ack \t007\ bel \t010\ bs \t011\ ht 3151409Sbostic.It \&012\ nl \t013\ vt \t014\ np \t015\ cr \t016\ so 3251409Sbostic.It \&017\ si \t020\ dle \t021\ dc1 \t022\ dc2 \t023\ dc3 3351409Sbostic.It \&024\ dc4 \t025\ nak \t026\ syn \t027\ etb \t030\ can 3451409Sbostic.It \&031\ em \t032\ sub \t033\ esc \t034\ fs \t035\ gs 3551409Sbostic.It \&036\ rs \t037\ us \t177\ del 3651409Sbostic.El 3748905Scael.Sh RETURN VALUES 3848905ScaelThe 3948905Scael.Fn iscntrl 4051387Sbosticfunction returns zero if the character tests false and 4148905Scaelreturns non-zero if the character tests true. 4248905Scael.Sh SEE ALSO 4351387Sbostic.Xr ctype 3 , 4448905Scael.Xr ascii 7 4548905Scael.Sh STANDARDS 4648905ScaelThe 4748905Scael.Fn iscntrl 4848905Scaelfunction conforms to 4948905Scael.St -ansiC . 50