本文共 1720 字,大约阅读时间需要 5 分钟。
unsigned long int strtoul (const char* str, char** endptr, int base);
unsigned long int
. This function operates like to interpret the string, but produces numbers of type unsigned long int
(see for details on the interpretation process). char*
, whose value is set by the function to the next character in str after the numerical value. This parameter can also be a null pointer, in which case it is not used. 0
, the base used is determined by the format in the sequence (see for details). unsigned long int
value. If no valid conversion could be performed, a zero value is returned. If the value read is out of the range of representable values by an unsigned long int
, the function returns ULONG_MAX(defined in ), and is set to . 1234567891011121314 | /* strtoul example */#include | |
Enter an unsigned number: 0x7ffValue entered: 2047. Its double: 4094 |
转载地址:http://rlbql.baihongyu.com/