]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
atoi.3: Add NOTES section explaining 0 return value on error
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Jun 2020 12:19:27 +0000 (14:19 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Jun 2020 12:21:42 +0000 (14:21 +0200)
And note that this is not specified by POSIX.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/atoi.3

index 3c6527a5bf618a407e61d99a128a87398ee198cf..87d1e1efd167bfa2ab55356e278ffd9bbb56fdc7 100644 (file)
@@ -126,6 +126,11 @@ only.
 .\" .BR atoll ()
 .\" function is present in glibc 2 since version 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 SEE ALSO
 .BR atof (3),
 .BR strtod (3),