aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/strtol.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-06-16 13:03:32 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-16 13:11:11 +0200
commit8e1b3e9f2207b74db280f52c64de11e976d10fe0 (patch)
tree34dfd19141396776fddb4f3615d2b8993868e3fe /man/man3/strtol.3
parent75497849ad47e487fe9b41de6ffca3c259a960d2 (diff)
downloadman-pages-8e1b3e9f2207b74db280f52c64de11e976d10fe0.tar.gz
strtod.3, strtol.3, strtoul.3: VERSIONS, CAVEATS: Reorganize sections
Fixes: 4131356cdab8 ("man*/, man-pages.7: VERSIONS, STANDARDS, HISTORY: Reorganize sections") Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/strtol.3')
-rw-r--r--man/man3/strtol.342
1 files changed, 21 insertions, 21 deletions
diff --git a/man/man3/strtol.3 b/man/man3/strtol.3
index f98afb1404..73c07c4ff9 100644
--- a/man/man3/strtol.3
+++ b/man/man3/strtol.3
@@ -162,6 +162,26 @@ T{
.BR strtoq ()
T} Thread safety MT-Safe locale
.TE
+.SH VERSIONS
+According to POSIX.1,
+in locales other than "C" and "POSIX",
+these functions may accept other,
+implementation-defined numeric strings.
+.P
+BSD also has
+.P
+.in +4n
+.EX
+.BI "quad_t strtoq(const char *" nptr ", char **" endptr ", int " base );
+.EE
+.in
+.P
+with completely analogous definition.
+Depending on the wordsize of the current architecture, this
+may be equivalent to
+.BR strtoll ()
+or to
+.BR strtol ().
.SH STANDARDS
C11, POSIX.1-2008.
.SH HISTORY
@@ -171,7 +191,7 @@ POSIX.1-2001, C89, SVr4, 4.3BSD.
.TP
.BR strtoll ()
POSIX.1-2001, C99.
-.SH NOTES
+.SH CAVEATS
Since
.BR strtol ()
can legitimately return 0,
@@ -190,26 +210,6 @@ and then determine if an error occurred by checking whether
.I errno == ERANGE
after the call.
.P
-According to POSIX.1,
-in locales other than "C" and "POSIX",
-these functions may accept other,
-implementation-defined numeric strings.
-.P
-BSD also has
-.P
-.in +4n
-.EX
-.BI "quad_t strtoq(const char *" nptr ", char **" endptr ", int " base );
-.EE
-.in
-.P
-with completely analogous definition.
-Depending on the wordsize of the current architecture, this
-may be equivalent to
-.BR strtoll ()
-or to
-.BR strtol ().
-.SH CAVEATS
If the
.I base
needs to be tested,