mirror of
https://github.com/cahirwpz/libnix.git
synced 2025-12-08 14:58:56 +00:00
11 lines
185 B
C
11 lines
185 B
C
#include <stdio.h>
|
|
|
|
double strtod(const char *nptr,char **endptr)
|
|
{ double a;
|
|
unsigned long n=0;
|
|
sscanf(nptr,"%lf%ln",&a,&n);
|
|
if(endptr)
|
|
*endptr=(char *)nptr+n;
|
|
return a;
|
|
}
|