FLINT3.7.0-dev

gr_write, gr_print, gr_println, gr_get_str

Synopsis#include <flint/gr.h>
int gr_write(gr_stream_t out, gr_srcptr x, gr_ctx_t ctx)source
int gr_print(gr_srcptr x, gr_ctx_t ctx)source
int gr_println(gr_srcptr x, gr_ctx_t ctx)source
int gr_get_str(char ** s, gr_srcptr x, gr_ctx_t ctx)source

Write x to a stream, print it to standard output (with a newline for gr_println), or set *s to a newly allocated string that must be freed with flint_free.

Guides#

Cite this page

The FLINT team, “gr_write, gr_print, gr_println, gr_get_str (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr/gr_write.html (generated 2026-10-20).