]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
atoi.3: Relocate BUGS section
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Jun 2020 12:22:18 +0000 (14:22 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Jun 2020 12:22:18 +0000 (14:22 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/atoi.3

index 87d1e1efd167bfa2ab55356e278ffd9bbb56fdc7..d66bb9256e18eced03fc742ad7b92fc26edeefd5 100644 (file)
@@ -82,17 +82,6 @@ except that they convert the initial portion of the
 string to their return type of \fIlong\fP or \fIlong long\fP.
 .SH RETURN VALUE
 The converted value or 0 on error.
-.SH BUGS
-.I errno
-is not set on error so there is no way to distinguish between 0 as an
-error and as the converted value.
-No checks for overflow or underflow are done.
-Only input in decimal base can be converted.
-It's recommended to use
-.BR strtol ()
-and
-.BR strtoul ()
-family of functions in new programs.
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
@@ -131,6 +120,17 @@ 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
+error and as the converted value.
+No checks for overflow or underflow are done.
+Only input in decimal base can be converted.
+It's recommended to use
+.BR strtol ()
+and
+.BR strtoul ()
+family of functions in new programs.
 .SH SEE ALSO
 .BR atof (3),
 .BR strtod (3),