Function c_alloc
Source pub fn c_alloc(align: usize, size: usize) -> *mut c_void
Expand description
Allocates size bytes with at least align alignment.
The closest Rust equivalent is alloc.
ยงReturns
- On success returns a nonnull pointer to the allocated memory.
- On allocation failure returns
NULL.