Table of Contents
The
function converts the string in to a value. The function converts the
string in to a value. The conversion is done according to the given which
must be between 2 and 36 inclusive, or be the special value 0. The string
may begin with an arbitrary amount of white space (as determined by followed
by a single optional or sign. If is zero or 16, the string may then include
a prefix, and the number will be read in base 16; otherwise, a zero is
taken as 10 (decimal) unless the next character is in which case it is
taken as 8 (octal). The remainder of the string is converted to a value
in the obvious manner, stopping at the first character which is not a valid
digit in the given base. (In bases above 10, the letter in either upper
or lower case represents 10, represents 11, and so forth, with representing
35.) If is non nil, stores the address of the first invalid character
in If there were no digits at all, however, stores the original value
of in (Thus, if is not but is on return, the entire string was valid.)
The function returns the result of the conversion, unless
the value would underflow or overflow. If an underflow occurs, returns
If an overflow occurs, returns In both cases, is set to
The
given string was out of range; the value converted has been clamped.
The function conforms to
Ignores the current locale.
Table of Contents