std1.0.0-beta-7 SafeC docs

std :: mem

Function std::alloc

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

generic<T> ?&heap T alloc(unsigned long size)

Heap allocation. T comes from the variable the result is assigned to ('?&heap char buf = std::alloc(64UL);'); 'unsigned char' for untyped bytes. Sizes are in bytes.