unsigned long int strtoul (const char* str, char** endptr, int base);
unsigned long int 类型的值返回。unsigned long int 类型的数字(有关解释过程的详细信息,请参见 strtol)。char* 类型对象的引用,其值由函数设置为 str 中数值之后的下一个字符。0,则使用的基数由序列中的格式决定(有关详细信息,请参见 strtol)。unsigned long int 值。unsigned long int 可表示的值的范围,函数将返回 ULONG_MAX(在 <climits> 中定义),并将 errno 设置为 ERANGE。 |
|
Enter an unsigned number: 30003 Value entered: 30003. Its double: 60006 |