NetBSD/gnu/libexec/uucp/libuucp/xmall.c
1993-08-04 19:33:45 +00:00

19 lines
263 B
C

/* xmalloc.c
Allocate a block of memory without fail. */
#include "uucp.h"
#include "uudefs.h"
pointer
xmalloc (c)
size_t c;
{
pointer pret;
pret = malloc (c);
if (pret == NULL && c != 0)
ulog (LOG_FATAL, "Out of memory");
return pret;
}