MWCC/compiler_and_linker/unsorted/ScanFloat.c

10 lines
185 B
C

#include "compiler/ScanFloat.h"
char *ScanFloat(const char *str, double *result, Boolean *failed) {
char *end;
*result = strtod(str, &end);
*failed = 0;
return end;
}