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