28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
*/ |
*/ |
30 |
|
|
31 |
|
/* |
32 |
|
|
33 |
|
@deftypefn Supplemental {long int} strtol (const char *@var{string}, char **@var{endptr}, int @var{base}) |
34 |
|
@deftypefnx Supplemental {unsigned long int} strtoul (const char *@var{string}, char **@var{endptr}, int @var{base}) |
35 |
|
|
36 |
|
The @code{strtol} function converts the string in @var{string} to a |
37 |
|
long integer value according to the given @var{base}, which must be |
38 |
|
between 2 and 36 inclusive, or be the special value 0. If @var{base} |
39 |
|
is 0, @code{strtol} will look for the prefixes @code{0} and @code{0x} |
40 |
|
to indicate bases 8 and 16, respectively, else default to base 10. |
41 |
|
When the base is 16 (either explicitly or implicitly), a prefix of |
42 |
|
@code{0x} is allowed. The handling of @var{endptr} is as that of |
43 |
|
@code{strtod} above. The @code{strtoul} function is the same, except |
44 |
|
that the converted value is unsigned. |
45 |
|
|
46 |
|
@end deftypefn |
47 |
|
|
48 |
|
*/ |
49 |
|
|
50 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
51 |
#include "config.h" |
#include "config.h" |
52 |
#endif |
#endif |