19 lines
263 B
C
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;
|
|
}
|