xref: /original-bsd/lib/libc/locale/isdigit.3 (revision 22f7d534)
1*22f7d534Sbostic.\" Copyright (c) 1991, 1993
2*22f7d534Sbostic.\"	The Regents of the University of California.  All rights reserved.
39e5144dfScael.\"
4791c68ebSbostic.\" This code is derived from software contributed to Berkeley by
5791c68ebSbostic.\" the American National Standards Committee X3, on Information
6791c68ebSbostic.\" Processing Systems.
7791c68ebSbostic.\"
89e5144dfScael.\" %sccs.include.redist.man%
99e5144dfScael.\"
10*22f7d534Sbostic.\"     @(#)isdigit.3	8.1 (Berkeley) 06/04/93
119e5144dfScael.\"
129e5144dfScael.Dd
139e5144dfScael.Dt ISDIGIT 3
149e5144dfScael.Os
159e5144dfScael.Sh NAME
169e5144dfScael.Nm isdigit
179e5144dfScael.Nd decimal-digit character test
189e5144dfScael.Sh SYNOPSIS
199e5144dfScael.Fd #include <ctype.h>
209e5144dfScael.Ft int
21a8b77666Sbostic.Fn isdigit "int c";
229e5144dfScael.Sh DESCRIPTION
239e5144dfScaelThe
249e5144dfScael.Fn isdigit
259e5144dfScaelfunction tests for any decimal-digit character.
2672dbba0eSbosticIn the ASCII character set, this includes the following characters:
2772dbba0eSbostic.sp
2872dbba0eSbostic.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
2972dbba0eSbostic.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4''
3072dbba0eSbostic.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9''
3172dbba0eSbostic.El
329e5144dfScael.Sh RETURN VALUES
339e5144dfScaelThe
349e5144dfScael.Fn isdigit
35a8b77666Sbosticfunction returns zero if the character tests false and
369e5144dfScaelreturns non-zero if the character tests true.
379e5144dfScael.Sh SEE ALSO
38a8b77666Sbostic.Xr ctype 3 ,
399e5144dfScael.Xr ascii 7
409e5144dfScael.Sh STANDARDS
419e5144dfScaelThe
429e5144dfScael.Fn isdigit
439e5144dfScaelfunction conforms to
449e5144dfScael.St -ansiC .
45