czz
asked on
Convert hexadecimal to decimal
Is there a function in c library to convert a hex to decimal? For example, if there is a hex number hex=01020304, how to convert it to be decimal number?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
char* pEnd;
char szHexText="0102A53F";
unsigned long nBinaryValue= strtoul( szHexText, &pEnd, 16 );
-- Dan