diff options
Diffstat (limited to 'man3/atoi.3')
-rw-r--r-- | man3/atoi.3 | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/man3/atoi.3 b/man3/atoi.3 index 27ed0ca28..d1d32f52a 100644 --- a/man3/atoi.3 +++ b/man3/atoi.3 @@ -11,7 +11,7 @@ .\" Modified Sat Jul 24 21:38:42 1993, Rik Faith (faith@cs.unc.edu) .\" Modified Sun Dec 17 18:35:06 2000, Joseph S. Myers .\" -.TH atoi 3 2023-02-05 "Linux man-pages 6.03" +.TH atoi 3 2023-07-20 "Linux man-pages 6.05.01" .SH NAME atoi, atol, atoll \- convert a string to an integer .SH LIBRARY @@ -67,24 +67,36 @@ The converted value or 0 on error. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). -.ad l -.nh .TS allbox; lbx lb lb l l l. Interface Attribute Value T{ +.na +.nh .BR atoi (), .BR atol (), .BR atoll () T} Thread safety MT-Safe locale .TE -.hy -.ad .sp 1 +.SH VERSIONS +POSIX.1 leaves the return value of +.BR atoi () +on error unspecified. +On glibc, musl libc, and uClibc, 0 is returned on error. .SH STANDARDS -POSIX.1-2001, POSIX.1-2008, C99, SVr4, 4.3BSD. +C11, POSIX.1-2008. +.SH HISTORY +C99, POSIX.1-2001, SVr4, 4.3BSD. +.PP +C89 and +POSIX.1-1996 include the functions +.BR atoi () +and +.BR atol () +only. .\" .SH NOTES .\" Linux libc provided .\" .BR atoq () @@ -96,11 +108,6 @@ POSIX.1-2001, POSIX.1-2008, C99, SVr4, 4.3BSD. .\" .BR atoll () .\" function is present since glibc 2.0.2, but .\" not in libc4 or libc5. -.SH NOTES -POSIX.1 leaves the return value of -.BR atoi () -on error unspecified. -On glibc, musl libc, and uClibc, 0 is returned on error. .SH BUGS .I errno is not set on error so there is no way to distinguish between 0 as an |