#include <sicstus/sicstus.h> void * SP_realloc(void *ptr, size_t size);
Changes the size of the block referenced by
bytes and returns a pointer to the (possibly moved) block. The contents
will be unchanged up to the lesser of the new and old sizes. The block
ptr must have been obtained by a call to
SP_realloc(), and must not have been released
by a call to
NULL on failure, the pointer otherwise.
See OS Memory Management.