pub unsafe fn free(ptr: *mut c_void)
Expand description
Frees allocated memory.
ยงSafety
This function is unsafe because it deallocates memory pointed to by ptr
.
The caller must ensure that ptr
was previously allocated by malloc
or realloc
.