summaryrefslogtreecommitdiffstats
path: root/man3/atoi.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/atoi.317
1 files changed, 8 insertions, 9 deletions
diff --git a/man3/atoi.3 b/man3/atoi.3
index d1d32f5..ebe67f3 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-07-20 "Linux man-pages 6.05.01"
+.TH atoi 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
atoi, atol, atoll \- convert a string to an integer
.SH LIBRARY
@@ -20,17 +20,17 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.PP
+.P
.BI "int atoi(const char *" nptr );
.BI "long atol(const char *" nptr );
.BI "long long atoll(const char *" nptr );
.fi
-.PP
+.P
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.PP
+.P
.BR atoll ():
.nf
_ISOC99_SOURCE
@@ -43,17 +43,17 @@ function converts the initial portion of the string
pointed to by \fInptr\fP to
.IR int .
The behavior is the same as
-.PP
+.P
.in +4n
.EX
strtol(nptr, NULL, 10);
.EE
.in
-.PP
+.P
except that
.BR atoi ()
does not detect errors.
-.PP
+.P
The
.BR atol ()
and
@@ -80,7 +80,6 @@ T{
.BR atoll ()
T} Thread safety MT-Safe locale
.TE
-.sp 1
.SH VERSIONS
POSIX.1 leaves the return value of
.BR atoi ()
@@ -90,7 +89,7 @@ On glibc, musl libc, and uClibc, 0 is returned on error.
C11, POSIX.1-2008.
.SH HISTORY
C99, POSIX.1-2001, SVr4, 4.3BSD.
-.PP
+.P
C89 and
POSIX.1-1996 include the functions
.BR atoi ()