All pastes #936276 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-10 08:39 UTC
rendered paste body
void *
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?