shithub: ircs

ref: e978996babb834efb9d2de465c812e11178cc33a
dir: /common.c/

View raw version
#include <u.h>
#include <libc.h>
#include "dat.h"
#include "fns.h"

void *
emalloc(ulong n)
{
	void *p;

	if(p = mallocz(n, 1), p == nil)
		sysfatal("mallocz: not enough mem");
	setmalloctag(p, getcallerpc(&n));
	return p;
}