git: 9front

ref: 5379518d6f65db9f062f955ca9ef04cbfd8d5aeb
dir: /sys/src/cmd/aquarela/alloc.c/

View raw version
#include <u.h>
#include <libc.h>
#include <ip.h>
#include <thread.h>
#include "netbios.h"

void *
nbemalloc(ulong nbytes)
{
	void *p;
	p = malloc(nbytes);
	if (p == nil) {
		print("nbemalloc: failed\n");
		threadexitsall("mem");
	}
	return p;
}