UniStrtol converts the initial portion of the string pointed to by nptr to long int representation. First, it decomposes the input string into three parts:
Then, it attempts to convert the subject sequence to an unsigned integer, and returns the result in the area pointed to by liResult. A pointer to the final string is stored in the object pointed to by endptr, provided that endptr is not a null pointer.
Decimal constants begin with a nonzero digit. Octal constants begin with 0. Hexadecimal constants begin with 0x or 0X.