FLINT3.7.0-dev

fmpz_poly_read_pretty, fmpz_poly_fread_pretty

Synopsis#include <flint/fmpz_poly.h>
int fmpz_poly_read_pretty(fmpz_poly_t poly, char ** x)source
int fmpz_poly_fread_pretty(FILE * file, fmpz_poly_t poly, char ** x)source

Read a polynomial in pretty format from stdin, respectively from file, into poly, and set *x to a newly allocated string with the variable name found in the input, to be freed with flint_free. Return the number of characters read on success, and a nonpositive value on a read error or malformed input.

Cite this page

The FLINT team, “fmpz_poly_read_pretty, fmpz_poly_fread_pretty (fmpz_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_poly/fmpz_poly_read_pretty.html (generated 2026-10-20).