freebsd-dev/gnu/libexec/uucp/libuucp/xmall.c

19 lines
263 B
C
Raw Normal View History

1993-08-05 18:28:27 +00: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;
}