home *** CD-ROM | disk | FTP | other *** search
- #include "defs.h"
-
- /* fatal - another way to terminate */
-
- /* VARARGS1 */
-
- public fatal(fmt,a1,a2,a3,a4)
- char *fmt;
- long a1,a2,a3,a4;
- {
- fprintf(stderr,fmt,a1,a2,a3,a4);
- abort();
- }
-
- /* myalloc - allocate memory or terminate */
-
- public char *myalloc(size)
- int size;
- {
- register char *p;
-
- if ((p = malloc((unsigned)size)) == 0)
- fatal("memory allocation error");
- return(p);
- }
-