Annotation of 43BSDReno/lib/libc/stdlib/atof.3, revision 1.1.1.1

1.1       root        1: .\" Copyright (c) 1990 The Regents of the University of California.
                      2: .\" All rights reserved.
                      3: .\"
                      4: .\" Redistribution and use in source and binary forms are permitted
                      5: .\" provided that: (1) source distributions retain this entire copyright
                      6: .\" notice and comment, and (2) distributions including binaries display
                      7: .\" the following acknowledgement:  ``This product includes software
                      8: .\" developed by the University of California, Berkeley and its contributors''
                      9: .\" in the documentation or other materials provided with the distribution
                     10: .\" and in all advertising materials mentioning features or use of this
                     11: .\" software. Neither the name of the University nor the names of its
                     12: .\" contributors may be used to endorse or promote products derived
                     13: .\" from this software without specific prior written permission.
                     14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     15: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     16: .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     17: .\"
                     18: .\"    @(#)atof.3      6.2 (Berkeley) 5/16/90
                     19: .\"
                     20: .TH ATOF 3 "May 16, 1990"
                     21: .UC 7
                     22: .SH NAME
                     23: atof \- convert ASCII string to double
                     24: .SH SYNOPSIS
                     25: .nf
                     26: .ft B
                     27: #include <stdlib.h>
                     28: 
                     29: double
                     30: atof(const char *nptr);
                     31: .ft R
                     32: .fi
                     33: .SH DESCRIPTION
                     34: The
                     35: .I atof
                     36: function converts the initial portion of the string pointed to by
                     37: .I nptr
                     38: to
                     39: .I double
                     40: representation.
                     41: .PP
                     42: It is equivalent to:
                     43: .sp
                     44: .RS
                     45: strtod(nptr, (char **)NULL);
                     46: .RE
                     47: .SH SEE ALSO
                     48: atoi(3), atol(3), strtod(3), strtol(3), strtoul(3)
                     49: .SH STANDARDS
                     50: .B Atof
                     51: conforms to ANSI X3.159-1989 (``ANSI C'').
                     52: .SH BUGS
                     53: This manual page represents intent instead of actual practice.
                     54: While it is intended that
                     55: .I atof
                     56: be implemented using
                     57: .IR strtod (3),
                     58: this has not yet happened.
                     59: In the current system,
                     60: .I atof
                     61: translates a string in the following form to a double:
                     62: an optional string of spaces, followed by an optional sign (``+'' or ``-''),
                     63: followed by a string of digits which may contain a decimal point (``.''),
                     64: followed by an optional exponent flag (``E'' or ``e''), followed by an
                     65: optionally signed integer.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.