shithub: ircs

ref: 78db7421d889f5af90135445bbdd996a5243e07d
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;
}