#include <stdio.h>
#include <stdlib.h>

char *
nemalloc(size)			/* news emalloc - calls errunlock on error */
unsigned size;
{
	register char *result = malloc(size);

	if (result == NULL)
		errunlock("out of memory", "");
	return result;
}


syntax highlighted by Code2HTML, v. 0.9.1