size_t scan_xlong(const char *src,unsigned long *dest);
scan_xlong parses an unsigned long integer in hexadecimal ASCII representation from src and writes the result into dest. It returns the number of bytes read from src.
scan_xlong understands both upper and lower case letters.
scan_xlong does not expect or understand a "0x" prefix.
fmt_xlong(3), scan_8long(3), scan_double(3), scan_long(3), scan_ulong(3), scan_xint(3).