Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
vmclear.c File Reference
#include <vmalloc/vmalloc.h>
#include <stdlib.h>
Include dependency graph for vmclear.c:

Go to the source code of this file.

Functions

void vmclear (Vmalloc_t *vm)
 

Function Documentation

◆ vmclear()

void vmclear ( Vmalloc_t vm)

Clear out all allocated space.

Note that this leaves the allocation region itself usable, but just frees all previous allocations made within this region.

Parameters
vmVmalloc to operate on

Definition at line 21 of file vmclear.c.

References _vmalloc_s::allocated, _vmalloc_s::capacity, free(), NULL, and _vmalloc_s::size.

Referenced by vmclose().

Here is the call graph for this function:
Here is the caller graph for this function: