home *** CD-ROM | disk | FTP | other *** search
- #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);
- }
-