std1.0.0-beta-7 SafeC docs

std :: heap

Function std::heap_realloc

#include <std/heap.h> source ยท definition

&heap unsigned char heap_realloc(&heap unsigned char ptr, unsigned long new_size)

Resize an allocation. Copies up to min(old_size, new_size) bytes. Returns NULL on failure; original block is NOT freed in that case.