htol

Converts a string value expressed in hexadecimal to a long integer.

Library:LibC
Classification:Other
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  unsigned long htol (
     const char   *ptr);
  

Parameters

ptr

(IN) Points to the hexadecimal string to convert. The string can have a leading 0x, but it is not required to begin with 0x.

Return Values

Returns the converted value.

See Also