Skip to main content

S_realloc

Function S_realloc 

Source
unsafe fn S_realloc(
    ptr: *mut c_char,
    newsize: c_long,
    oldsize: c_long,
    eltsize: c_int,
) -> *mut c_char
Expand description

S compatibility: reallocate memory on R’s memory stack.

§Safety

ptr must have been allocated by S_alloc. Checked wrapper for S_realloc. Calls S_realloc_unchecked and routes through with_r_thread. Generated from source location line 3357, column 8. Generated from source file miniextendr-api/src/ffi.rs.