|
RtnHtoi functions much like the standard C runtime library atoi function. The RtnHtoi function interprets the passed string as a hexadecimal number and converts it to binary.
NOTE: There are no leading characters needed (or accepted). So RtnHtoi will convert "FF" to 255 binary (decimal) but will convert "0xFF" to 0.
Syntax
unsigned long RtnHtoi( char* pszHex );
Parameters
pszHex
Pointer to ASCII string representing a HEXIDECIMAL number
Return Values
ASCII string in HEX converted to binary number
Requirements
Header | Drvutl.h |
Library | Rtxtcpip.lib |