From c24f713c14c34807a3c2316fab235fab2c00b6a4 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Thu, 6 Sep 2018 01:05:14 +0000 Subject: [PATCH] scott created page: JoeyLib Memory Functions --- JoeyLib-Memory-Functions.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 JoeyLib-Memory-Functions.md diff --git a/JoeyLib-Memory-Functions.md b/JoeyLib-Memory-Functions.md new file mode 100644 index 0000000..68b3ecf --- /dev/null +++ b/JoeyLib-Memory-Functions.md @@ -0,0 +1,19 @@ +*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 +```c +void jlFree(void *p); +``` +Frees a block of memory pointed to by `p`. + +#### jlMalloc +```c +void *jlMalloc(size_t *bytes); +``` +Allocates `bytes` of memory and returns a pointer to the new block. + +#### jlRealloc +```c +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.