Function drone_core::ffi::libc::malloc[][src]

#[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.

Safety

This function works with raw pointers.