2016-05-19 14:15:22 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2018-11-01 18:24:22 +01:00
|
|
|
void* syscalloc (size_t num, size_t size)
|
2016-05-19 14:15:22 +02:00
|
|
|
{
|
|
|
|
size_t bytes = num * size;
|
2018-11-01 18:24:22 +01:00
|
|
|
void *p = sysmalloc(bytes);
|
2016-05-19 14:15:22 +02:00
|
|
|
|
|
|
|
if(p)
|
|
|
|
memset(p, 0, bytes);
|
|
|
|
|
|
|
|
return p;
|
|
|
|
}
|