15 bool parse_sft(
const char *source,
int length, mpfr_t cx, mpfr_t cy, mpfr_t cz) {
18 char *source2 = strdup(source);
26 if (0 == strncmp(line,
"r=", 2)) { sx = line + 2; }
27 if (0 == strncmp(line,
"i=", 2)) { sy = line + 2; }
28 if (0 == strncmp(line,
"s=", 2)) { sz = line + 2; }
31 mpfr_set_prec(cz, 53);
32 mpfr_set_str(cz, sz, 10, MPFR_RNDN);
40 mpfr_set_str(cx, sx, 10, MPFR_RNDN);
41 mpfr_set_str(cy, sy, 10, MPFR_RNDN);