drone_core::ffi::libc
#[no_mangle]pub unsafe extern "C" fn malloc(size: size_t) -> *mut c_void
Allocates size bytes and returns a pointer to the allocated memory. The memory is not initialized. If size is 0, then it returns either NULL, or a unique pointer value that can later be successfully passed to free.
size
0
NULL
free
This function works with raw pointers.