isdigit

Tests for a decimal-digit character (0-9).

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <ctype.h> 
   
  int isdigit (
     int   c);
  

Parameters

c

(IN) Specifies the character to be tested.

Return Values

Returns a nonzero value when the argument is a digit. Otherwise, it returns zero.

See Also