shithub: ircs

ref: 3d67aef1674ebfcc63bac043711f14ddd4765c94
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;
}