manual page distributed with 4.1BSD
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 16 May 1985 05:53:13 +0000 (21:53 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 16 May 1985 05:53:13 +0000 (21:53 -0800)
SCCS-vsn: lib/libc/stdlib/atof.3 4.1

usr/src/lib/libc/stdlib/atof.3 [new file with mode: 0644]

diff --git a/usr/src/lib/libc/stdlib/atof.3 b/usr/src/lib/libc/stdlib/atof.3
new file mode 100644 (file)
index 0000000..202bcbd
--- /dev/null
@@ -0,0 +1,41 @@
+.\"    @(#)atof.3      4.1 (Berkeley) %G%
+.\"
+.TH ATOF 3 
+.AT 3
+.SH NAME
+atof, atoi, atol \- convert ASCII to numbers
+.SH SYNOPSIS
+.nf
+.B double atof(nptr)
+.B char *nptr;
+.PP
+.B atoi(nptr)
+.B char *nptr;
+.PP
+.B long atol(nptr)
+.B char *nptr;
+.fi
+.SH DESCRIPTION
+These functions convert a string pointed to by
+.I nptr
+to floating, integer, and long integer
+representation respectively.
+The first unrecognized character ends the string.
+.PP
+.I Atof
+recognizes an optional string of tabs and spaces,
+then an optional sign, then
+a string of digits optionally containing a decimal
+point, then an optional `e' or `E' followed
+by an optionally signed integer.
+.PP
+.I Atoi
+and
+.I atol
+recognize an optional string of tabs and spaces,
+then an optional sign, then a string of
+digits.
+.SH SEE ALSO
+scanf(3)
+.SH BUGS
+There are no provisions for overflow.