Anonymous
public text v1 · immutablevoid *
mem_sys_allocate(size_t size)
{
void * const ptr = malloc(size);
if (!ptr)
PANIC(NULL, "Out of mem");
return ptr;
}
1) The declaration of ptr says that I cannot modify *ptr, but that I can make ptr point to something else, correct?