1 /* $Id: alloc.c,v 2.3 1994/06/24 10:45:37 ceriel Exp $ */
8 extern char *realloc();
10 char *Malloc(sz, descr)
14 register char *new = malloc((unsigned int) (sz));
16 if (new == (char *) 0 && descr != (char *) 0)
17 fatal("Cannot allocate %s", descr);
19 #ifdef DB_MALLOC /* from debug.h */
20 /* fill area with recognizable garbage */
21 { register char *p = new;
23 register char ch = 0252;
32 #endif /* DB_MALLOC */
37 char *Realloc(old, sz, descr)
42 register char *new = realloc(old, (unsigned int) (sz));
44 if (new == (char *) 0)
45 fatal("Cannot reallocate %s", descr);