Skip to main content

aligned_alloc

Function aligned_alloc 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn aligned_alloc( alignment: usize, size: usize, ) -> *mut c_void
Expand description

Allocates aligned memory.

ยงSafety

The returned pointer must be freed with free when it is no longer needed.