MCPcopy Create free account
hub / github.com/numpy/numpy / NumPyOS_ascii_ftoLf

Function NumPyOS_ascii_ftoLf

numpy/core/src/common/numpyos.c:757–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757NPY_NO_EXPORT int
758NumPyOS_ascii_ftoLf(FILE *fp, long double *value)
759{
760 char buffer[FLOAT_FORMATBUFLEN + 1];
761 char *p;
762 int r;
763
764 r = read_numberlike_string(fp, buffer, FLOAT_FORMATBUFLEN+1);
765
766 if (r != EOF && r != 0) {
767 *value = NumPyOS_ascii_strtold(buffer, &p);
768 r = (p == buffer) ? 0 : 1;
769 }
770 return r;
771}
772
773NPY_NO_EXPORT npy_longlong
774NumPyOS_strtoll(const char *str, char **endptr, int base)

Callers

nothing calls this directly

Calls 2

read_numberlike_stringFunction · 0.85
NumPyOS_ascii_strtoldFunction · 0.85

Tested by

no test coverage detected