Skip to main content

malloc

Macro malloc 

Source
macro_rules! malloc {
    ($a:ty, $n:expr) => { ... };
}
Available on non-crate feature lock only.
Expand description

Allocate zeroed memory for a given type and number of elements.

Kept for use with the unsafe C API; the safe wrappers no longer need it. The memory is never freed, so prefer a Vec when you can.