FLINT3.7.0-dev

flint_realloc

Synopsis#include <flint/flint.h>
void * flint_realloc(void * ptr, size_t size)source

Resizes the block ptr, previously returned by flint_malloc, flint_calloc or flint_realloc, to size bytes and returns the (possibly moved) block. If ptr is NULL, this is flint_malloc(size). Throws on failure.

Guides#

Cite this page

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