home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
fermiVogle.tar.Z
/
fermiVogle.tar
/
devel
/
src
/
valloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-07
|
306b
|
20 lines
#include "vogle.h"
/*
* vallocate
*
* Allocate some memory, barfing if malloc returns NULL.
*/
char *
vallocate(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);
}