home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
VOGLE.ZIP
/
SRC
/
VALLOC.C
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-11
|
336b
|
21 lines
#include "vogle.h"
/*
* vallocate
*
* Allocate some memory, barfing if malloc returns NULL.
*/
char *
vallocate(size)
unsigned size;
{
char *p, buf[60];
if ((p = (char *)calloc(size, 1)) == (char *)0) {
sprintf(buf,"vallocate: request for %d bytes returned NULL", size);
verror(buf);
}
return (p);
}