why2_realloc¶
Parameters¶
Identifier | Data type |
---|---|
pointer |
void * |
size |
unsigned long |
Attributes¶
Return type | void * |
Header comment | THIS DOESN'T PRESERVE CONTENT OF pointer! |
Added in commit | 8af6bd45c38e780bb14d99aee0a572b028c186b6 |
Description¶
Function deallocates pointer
(only applicable if pointer
was allocated using WHY2-memory), passes size
into malloc
function and returns the output value. The value is also pushed to linked-list
for garbage collector.