source: trunk/minix/man/man3/atof.3@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 903 bytes
Line 
1.\" @(#)atof.3 6.1 (Berkeley) 5/15/85
2.\"
3.TH ATOF 3 "May 15, 1985"
4.AT 3
5.SH NAME
6atof, atoi, atol \- convert ASCII to numbers
7.SH SYNOPSIS
8.nf
9.ft B
10#include <stdlib.h>
11
12double atof(const char *\fInptr\fP)
13int atoi(const char *\fInptr\fP)
14long atol(const char *\fInptr\fP)
15.ft R
16.fi
17.SH DESCRIPTION
18These functions convert a string pointed to by
19.I nptr
20to floating, integer, and long integer representation respectively.
21The first unrecognized character ends the string.
22.PP
23.B Atof
24recognizes an optional string of spaces, then an optional sign, then
25a string of digits optionally containing a decimal
26point, then an optional `e' or `E' followed by an optionally signed integer.
27.PP
28.B Atoi
29and
30.B atol
31recognize an optional string of spaces, then an optional sign, then a
32string of
33digits.
34.SH SEE ALSO
35.BR strtol (3),
36.BR strtod (3),
37.BR scanf (3).
38.SH BUGS
39There are no provisions for overflow.
Note: See TracBrowser for help on using the repository browser.