Skip to content

why2_recalloc

Parameters

Identifier Data type
pointer void *
size unsigned long
block_size unsigned long

Attributes

Return type void *
Header comment SAME AS why2_realloc BUT FILLS THE pointer WITH NULL-TERMS
Added in commit c5394e63e50e7c2e018a4323d33821c4f4e14884

Description

Function deallocates pointer (only applicable if pointer was allocated using WHY2-memory), passes size and block_size into calloc function and returns the output value. The value is also pushed to linked-list for garbage collector.