DragonFly On-Line Manual Pages
ISDIGIT(3) DragonFly Library Functions Manual ISDIGIT(3)
NAME
isdigit -- decimal-digit character test
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ctype.h>
int
isdigit(int c);
DESCRIPTION
The isdigit() function tests for any decimal-digit character. For single
C chars locales the value of the argument is representable as an unsigned
char or the value of EOF. In the ASCII character set, this includes the
following characters (with their numeric values shown in octal):
060 ``0'' 061 ``1'' 062 ``2'' 063 ``3'' 064 ``4''
065 ``5'' 066 ``6'' 067 ``7'' 070 ``8'' 071 ``9''
RETURN VALUES
The isdigit() function returns zero if the character tests false and
returns non-zero if the character tests true.
SEE ALSO
ctype(3), ascii(7)
STANDARDS
The isdigit() function conforms to ISO/IEC 9899:1990 (``ISO C90'').
DragonFly 3.5 June 4, 1993 DragonFly 3.5