NetBSD/gnu/libexec/uucp/libuucp/xmall.c

19 lines
263 B
C
Raw Normal View History

1993-08-04 23:33:45 +04:00
/* 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;
}