home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
SNPD9404.ZIP
/
HSTR_I.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-03
|
406b
|
26 lines
.D 15 2
.I 20 1
while (cptr && *cptr && isxdigit(*cptr))
.D 21 1
.I 30 20
#ifdef TEST
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char *arg;
unsigned int x;
while (--argc)
{
x = hstr_i(arg = *++argv);
printf("Hex %s = %d\n", arg, x, x);
}
return EXIT_SUCCESS;
}
#endif /* TEST */