home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
macvglph.cpt
/
MacVogl-alpha1
/
valloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-10-15
|
312b
|
21 lines
#include "vogl.h"
/*
* vallocate
*
* Allocate some memory, barfing if malloc returns NULL.
*/
char *
vallocate(size)
unsigned size;
{
char *p, buf[60];
if ((p = (char *)malloc(size)) == (char *)0) {
sprintf(buf,"vallocate: request for %d bytes returned NULL", size);
verror(buf);
}
return (p);
}