HexDigit

Return the numeric value of a hexadecimal digit character.

Synopsis

Declared in <crypto/hex_base.h>

signed char
HexDigit(char c);

Return Value

The value 0-15 for a valid digit, or -1 if c is not a hexadecimal digit.

Parameters

NameDescription
cThe hexadecimal digit character to decode.