summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/plan9/9mallocz.c
blob: de5edb266b501575b4685f29120064ef7b617ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdlib.h>
#include <string.h>

void*
_MALLOCZ(int n, int clr)
{
	void *v;

	v = malloc(n);
	if(v && clr)
		memset(v, 0, n);
	return v;
}