12.3.3 SP_calloc()

Synopsis

     #include <sicstus/sicstus.h>
     
     void *
     SP_calloc(size_t nmemb,
               size_t size);

Allocates a block of at least size * nemb. The first size * nmemb bytes are set to zero.

Arguments

nmemb
How many items to allocate.
size
Size of each item.

Return Value

The pointer, if allocation was successful, otherwise NULL.

See Also

OS Memory Management.


Send feedback on this subject.