File: xmall.c

package info (click to toggle)
uucp 1.07-20
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 5,160 kB
  • ctags: 3,209
  • sloc: ansic: 53,817; sh: 4,479; makefile: 230; perl: 199
file content (18 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (14)
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;
}