/************************************************************* * File: lib/isdigit.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */ /** isdigit(c) returns true if c is decimal digit */ isdigit(c) int c; { if (c >= '0' && c <= '9') return(1); return(0); }