home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Unix System Administration Handbook 1997 October
/
usah_oct97.iso
/
news
/
cnews.tar
/
libcnews
/
nemalloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-11-06
|
240b
|
14 lines
#include <stdio.h>
#include <stdlib.h>
char *
nemalloc(size) /* news emalloc - calls errunlock on error */
unsigned size;
{
register char *result = malloc(size);
if (result == NULL)
errunlock("out of memory", "");
return result;
}