summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/libuucp/xmall.c
blob: 4aac23748c82c0ce8a87df058aea961ba8383bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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;
}
OpenPOWER on IntegriCloud