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.\" @(#)isdigit.3 8.1 (Berkeley) 06/04/93 1148905Scael.\" 1248905Scael.Dd 1348905Scael.Dt ISDIGIT 3 1448905Scael.Os 1548905Scael.Sh NAME 1648905Scael.Nm isdigit 1748905Scael.Nd decimal-digit character test 1848905Scael.Sh SYNOPSIS 1948905Scael.Fd #include <ctype.h> 2048905Scael.Ft int 2151387Sbostic.Fn isdigit "int c"; 2248905Scael.Sh DESCRIPTION 2348905ScaelThe 2448905Scael.Fn isdigit 2548905Scaelfunction tests for any decimal-digit 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 \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' 3051409Sbostic.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' 3151409Sbostic.El 3248905Scael.Sh RETURN VALUES 3348905ScaelThe 3448905Scael.Fn isdigit 3551387Sbosticfunction returns zero if the character tests false and 3648905Scaelreturns non-zero if the character tests true. 3748905Scael.Sh SEE ALSO 3851387Sbostic.Xr ctype 3 , 3948905Scael.Xr ascii 7 4048905Scael.Sh STANDARDS 4148905ScaelThe 4248905Scael.Fn isdigit 4348905Scaelfunction conforms to 4448905Scael.St -ansiC . 45