~ubuntu-branches/ubuntu/maverick/avr-libc/maverick

« back to all changes in this revision

Viewing changes to libc/stdlib/strtod.c

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2009-10-31 11:52:10 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091031115210-x0mlijnegkce86fk
Tags: 1:1.6.7-1
* New upstream relese (closes: #544030)
* Added lintian overrides (closes: #553265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
   POSSIBILITY OF SUCH DAMAGE. */
30
30
 
31
 
/* $Id: strtod.c,v 1.1.2.3 2008/02/23 10:21:11 dmix Exp $ */
 
31
/* $Id: strtod.c,v 1.1.2.4 2009/04/01 23:12:12 arcanum Exp $ */
32
32
 
33
33
#include <avr/pgmspace.h>
34
34
#include <ctype.h>
36
36
#include <limits.h>
37
37
#include <math.h>               /* INFINITY, NAN                */
38
38
#include <stdlib.h>
 
39
#include "sectionname.h"
39
40
 
40
41
/* Only GCC 4.2 calls the library function to convert an unsigned long
41
42
   to float.  Other GCC-es (including 4.3) use a signed long to float
79
80
     in \c errno.  If the correct value would cause underflow, zero is
80
81
     returned and \c ERANGE is stored in \c errno.
81
82
 */
82
 
double strtod (const char * nptr, char ** endptr)
 
83
ATTRIBUTE_CLIB_SECTION
 
84
double
 
85
strtod (const char * nptr, char ** endptr)
83
86
{
84
87
    union {
85
88
        unsigned long u32;