mirror of
https://github.com/0intro/conterm
synced 2024-11-25 23:19:36 +03:00
14 lines
141 B
C
14 lines
141 B
C
#include <u.h>
|
|
#include <libc.h>
|
|
|
|
void*
|
|
mallocz(ulong n, int clr)
|
|
{
|
|
void *v;
|
|
|
|
v = malloc(n);
|
|
if(v && clr)
|
|
memset(v, 0, n);
|
|
return v;
|
|
}
|