QP_malloc(), QP_free() #include <quintus/quintus.h>
void *QP_malloc(size)
int size;
A replacement for the C function malloc().
void QP_free(mem)
void *mem;
A replacement for the C function free().
These function provide memory allocation and deallocation via Prolog's embeddable memory allocation layer, instead of directly via the C library. Using the embeddable memory allocation layer tends to keep memory fragmentation down.