Table of Contents

NAME

SYNOPSIS

DESCRIPTION

The function converts the string in to an 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 an value in the obvious manner, stopping at the end of the string or at the first character that does not produce 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.)

RETURN VALUES

The function returns either the result of the conversion or, if there was a leading minus sign, the negation of the result of the conversion, unless the original (non-negated) value would overflow; in the latter case, returns and sets the global variable to

ERRORS

The given string was out of range; the value converted has been clamped.

SEE ALSO

STANDARDS

The function conforms to

BUGS

Ignores the current locale.


Table of Contents