aboutsummaryrefslogtreecommitdiffstats
path: root/man3/atoi.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/atoi.3')
-rw-r--r--man3/atoi.335
1 files changed, 27 insertions, 8 deletions
diff --git a/man3/atoi.3 b/man3/atoi.3
index eadaac17fa..674c018459 100644
--- a/man3/atoi.3
+++ b/man3/atoi.3
@@ -44,7 +44,9 @@ atoi, atol, atoll, atoq \- convert a string to an integer
.BI "long long atoq(const char *" nptr );
.fi
.SH DESCRIPTION
-The \fBatoi\fP() function converts the initial portion of the string
+The
+.BR atoi ()
+function converts the initial portion of the string
pointed to by \fInptr\fP to
.IR int .
The behaviour is the same as
@@ -53,25 +55,42 @@ The behaviour is the same as
.B strtol(nptr, (char **) NULL, 10);
.RE
.sp
-except that \fBatoi\fP() does not detect errors.
+except that
+.BR atoi ()
+does not detect errors.
.PP
-The \fBatol\fP() and \fBatoll\fP() functions behave the same as
-\fBatoi\fR(), except that they convert the initial portion of the
+The
+.BR atol ()
+and
+.BR atoll ()
+functions behave the same as
+.BR atoi (),
+except that they convert the initial portion of the
string to their return type of \fIlong\fP or \fIlong long\fP.
-\fBatoq\fP() is an obsolete name for \fBatoll\fP().
+.BR atoq ()
+is an obsolete name for
+.BR atoll ().
.SH "RETURN VALUE"
The converted value.
.SH "CONFORMING TO"
SVr4, POSIX.1-2001, 4.3BSD, C99.
C89 and
-POSIX.1-1996 include the functions \fBatoi\fP() and \fBatol\fP() only.
+POSIX.1-1996 include the functions
+.BR atoi ()
+and
+.BR atol ()
+only.
.BR atoq (3)
is a GNU extension.
.SH NOTES
-The non-standard \fBatoq\fP() function is not present in libc 4.6.27
+The non-standard
+.BR atoq ()
+function is not present in libc 4.6.27
or glibc 2, but is present in libc5 and libc 4.7 (though only as an
inline function in \fB<stdlib.h>\fP until libc 5.4.44).
-The \fBatoll\fP() function is present in glibc 2 since version 2.0.2, but
+The
+.BR atoll ()
+function is present in glibc 2 since version 2.0.2, but
not in libc4 or libc5.
.SH "SEE ALSO"
.BR atof (3),