Skip to main content

S_alloc

Function S_alloc 

Source
pub unsafe fn S_alloc(nelem: c_long, eltsize: c_int) -> *mut c_char
Expand description

S compatibility: allocate zeroed memory on R’s memory stack.

§Parameters

  • nelem: Number of elements
  • eltsize: Size of each element Checked wrapper for S_alloc. Calls S_alloc_unchecked inside with_r_thread, which panics off R’s main thread. Generated from source location line 2153, column 12. Generated from source file miniextendr-api/src/sys.rs.