COHERENT manpages

This page displays the COHERENT manpage for isdigit() [Check if a character is a numeral].

List of available manpages
Index


isdigit() -- ctype Function (libc)

Check if a character is a numeral
#include <ctype.h>
int isdigit(c) int c;

isdigit() tests  whether the argument c  is a numeral (0-9).   It returns a
number other than zero if c is a numeral, and zero if it is not.  isdigit()
assumes that c is an ASCII character or EOF.

Example

For an example of how to use this macro, see the entry for ctype.h.

See Also

ASCII,
libc
ANSI Standard, §7.3.1.4
POSIX Standard, §8.1