Penguin
Annotated edit history of atol(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 ATOI
2 !!!ATOI
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 CONFORMING TO
8 NOTES
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 atoi, atol, atoll, atoq - convert a string to an integer.
15 !!SYNOPSIS
16
17
18 __#include
19 __''nptr''__);
20 long atol(const char *__''nptr''__);
21 long long atoll(const char *__''nptr''__);
22 long long atoq(const char *__''nptr''__);
23 __
24 !!DESCRIPTION
25
26
27 The __atoi()__ function converts the initial portion of
28 the string pointed to by ''nptr'' to ''int''. The
29 behaviour is the same as
30
31
32 __strtol(nptr, (char **)NULL, 10);__
33
34
35 except that __atoi()__ does not detect
36 errors.
37
38
39 The __atol()__ and __atoll()__ functions behave the
40 same as __atoi()__, except that they convert the initial
41 portion of the string to their return type of ''long'' or
42 ''long long''. __atoq()__ is an obsolete name for
43 __atoll()__.
44 !!RETURN VALUE
45
46
47 The converted value.
48 !!CONFORMING TO
49
50
51 SVID 3, POSIX.1, BSD 4.3, ISO/IEC 9899. ISO/IEC 9899:1990
52 (C89) and POSIX.1 (1996 edition) include the functions
53 __atoi()__ and __atol()__ only; C99 adds the function
54 __atoll()__.
55 !!NOTES
56
57
58 The non-standard __atoq()__ function is not present in
59 libc 4.6.27 or glibc 2, but is present in libc5 and libc 4.7
60 (though only as an inline function in
61 ____ until libc 5.4.44). The
62 __atoll()__ function is present in glibc 2 since version
63 2.0.2, but not in libc4 or libc5.
64 !!SEE ALSO
65
66
67 atof(3), strtod(3), strtol(3),
68 strtoul(3)
69 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.