home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
SMALL_C
/
ISXDIGIT.C
< prev
next >
Wrap
Text File
|
1987-10-04
|
256b
|
10 lines
/*
** return 'true' if c is a hexadecimal digit
** (0-9, A-F, or a-f)
*/
isxdigit(c) int c; {
return ((c<='f' && c>='a') ||
(c<='F' && c>='A') ||
(c<='9' && c>='0'));
}