FLINT3.7.0-dev

mag_dump_str, mag_load_str

Synopsis#include <flint/mag.h>
char * mag_dump_str(const mag_t x)source
int mag_load_str(mag_t x, const char * str)source

mag_dump_str returns a string, to be freed with flint_free, holding a binary representation of x that mag_load_str reads back exactly. mag_load_str returns nonzero if str is not in this format.

Cite this page

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