MWCC/compiler_and_linker/unsorted/ScanFloat.c

10 lines
185 B
C
Raw Normal View History

2022-12-29 12:32:55 +00:00
#include "compiler/ScanFloat.h"
char *ScanFloat(const char *str, double *result, Boolean *failed) {
char *end;
*result = strtod(str, &end);
*failed = 0;
return end;
}