
The function hex () takes an ASCII
character which is a valid hexadecimal digit (upper or lower case)
and returns its value (0-15 decimal). Any invalid digit returns -1.
The static array hexchars[] declared at the top
level in rsp-server.c provides a mapping from a
hexadecimal digit value (in the range 0-15 decimal) to its ASCII
character representation.
