(rontolisp) docs
← Functions

ffi:alloc

(ffi:alloc size)

Allocates size bytes of foreign memory and answers a pointer to it. This is malloc: the memory outlives every Lisp scope and is released only by ffi:free, which is CFFI's own contract.

The contents are undefined until written; prog1 here reads the value back before the block is freed.