2 JoeyLib Memory Functions
Scott Duensing edited this page 2019-10-17 18:55:31 -05:00

JoeyLib offers replacements for several common memory management functions. It is recommended you use the JoeyLib versions while developing your application to assist you with tracking down leaks and excessive memory usage.

jlFree

void jlFree(void *p);

Frees a block of memory pointed to by p.

jlMalloc

void *jlMalloc(size_t *bytes);

Allocates bytes of memory and returns a pointer to the new block. Unlike traditional malloc, the new block will be zeroed.

jlRealloc

void *jlRealloc(void *p, size_t *bytes);

Changes the size of an existing allocation p to bytes of memory and returns a pointer to the new block.