scott created page: JoeyLib Memory Functions
parent
d2724ab612
commit
c24f713c14
1 changed files with 19 additions and 0 deletions
19
JoeyLib-Memory-Functions.md
Normal file
19
JoeyLib-Memory-Functions.md
Normal file
|
@ -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.
|
Loading…
Add table
Reference in a new issue