Rev 8793 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
#include
void *calloc(size_t num, size_t size) {
void *ptr = _ksys_alloc(num*size);
if(!ptr){
errno = ENOMEM;
return NULL;
}
memset(ptr, 0, num*size);
return ptr;