home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
272_01
/
hstr_i.doc
< prev
next >
Wrap
Text File
|
1987-07-17
|
772b
|
33 lines
NAME
hstr_i -- make an ascii hexadecimal string into an integer
SYNOPSIS
c = hstr_i(p);
char *p; string of ascii characters
unsigned int c; returned hex value
DESCRIPTION
Read a string of ascii hexadecimal digits (0-9, A-F) and create
an integer from the result. String must begin with a hex digit.
Calculation proceeds to first non-hex digit or NULL terminator.
EXAMPLE
char string[] = "1A5C*";
int result;
result = hstr_i(string);
result will equal 0x1A5C
This function is found in SMDLx.LIB for the Datalight Compiler