shithub: ircs

ref: 5479f0fb4283ca4a5a58c9b7b50c5b86bde13aa1
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;
}