1 /* alloc.c - version 1.0.2 */
7 a ridiculous definition, suppressing
8 "possible pointer alignment problem" for (long *) malloc()
9 "enlarg defined but never used"
10 "ftell defined (in <stdio.h>) but never used"
15 alloc(n) unsigned n; {
16 long dummy = ftell(stderr);
17 if(n) dummy = 0; /* make sure arg is used */
25 register unsigned lth;
29 if(!(ptr = malloc(lth)))
30 panic("Cannot get %d bytes", lth);
37 register unsigned lth;
41 if(!(nptr = realloc(ptr,lth)))
42 panic("Cannot reallocate %d bytes", lth);
43 return((long *) nptr);