home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / uucp / Uucp.framework / uucp.subproj / xmall.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-09  |  263 b   |  19 lines

  1. /* xmalloc.c
  2.    Allocate a block of memory without fail.  */
  3.  
  4. #include "uucp.h"
  5.  
  6. #include "uudefs.h"
  7.  
  8. pointer
  9. xmalloc (c)
  10.      size_t c;
  11. {
  12.   pointer pret;
  13.  
  14.   pret = malloc (c);
  15.   if (pret == NULL && c != 0)
  16.     ulog (LOG_FATAL, "Out of memory");
  17.   return pret;
  18. }
  19.