Vocabulary
libc

Inputs
counta non-negative integer
sizea non-negative integer


Outputs
aliena c-ptr


Word description
Allocates a block of count * size bytes from the operating system. The contents of the block are initially zero.

Errors
Throws an error if memory allocation failed.

Warning
Don't forget to deallocate the memory with a call to free.


Definition