shithub: tlsclient

ref: 1a02ec3b5c4f3cb41c7a5b377c5fffa0a415e3b7
dir: /libc/mallocz.c/

View raw version
#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;
}