summaryrefslogtreecommitdiff
path: root/src/stdlib/atof.c
blob: f3d147f181cab139016729d03a28f6ee669ab30d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdlib.h>
#include "_stdlib.h"

/** convert string to floating-point **/

double atof(const char * nptr)
{
	SIGNAL_SAFE(0);
	return strtod(nptr, (char**)NULL);
}

/***
converts the string at ARGUMENT(nptr) to a TYPE(double). The
conversion goes until the first inappropriate character.
***/

/*
LC_CTYPE
RETURN_SUCCESS(the converted value)
STDC(1)
*/