QP_malloc(), QP_free()

Synopsis

     #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().

Description

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.

See Also

fli-emb