Share via


AtlHexValue

Call this function to get the numeric value of a hexadecimal digit.

inline short AtlHexValue( 
   char chIn  
) throw( );

Parameters

  • chIn
    The hexadecimal character '0'-'9', 'A'-'F', or 'a'-'f'.

Return Value

The numeric value of the input character interpreted as a hexadecimal digit. For example, an input of '0' returns a value of 0 and an input of 'A' returns a value of 10. If the input character is not a hexadecimal digit, this function returns -1.

Requirements

Header: atlutil.h

See Also

Other Resources

ATL Concepts

ATL COM Desktop Components

ATL Functions Alphabetical Reference