home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
turbo_c
/
tc130.arc
/
HSTR_I.DOC
< prev
next >
Wrap
Text File
|
1987-08-20
|
770b
|
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 SMTCx.LIB for the Turbo-C Compiler