home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
macvglph.cpt
/
MacVogl-alpha1
/
halloc.c
< prev
next >
Wrap
Text File
|
1991-10-15
|
331b
|
24 lines
#include <stdio.h>
extern char *malloc();
/*
* hallocate
*
* Allocate some memory, barfing if malloc returns NULL.
*/
char *
hallocate(size)
unsigned size;
{
char *p;
if ((p = (char *)malloc(size)) == (char *)NULL) {
fprintf(stderr,"hallocate: request for %d bytes returned NULL", size);
exit(1);
}
return (p);
}