4 * Memory routines with out-of-memory checking.
6 * Copyright 1996 Derek B. Noonburg
13 #include "../../config.h"
20 * Same as malloc, but prints error message and exits if malloc()
23 extern void *gmalloc(int size);
26 * Same as realloc, but prints error message and exits if realloc()
27 * returns NULL. If <p> is NULL, calls malloc instead of realloc().
29 extern void *grealloc(void *p, int size);
32 * Same as free, but checks for and ignores NULL pointers.
34 extern void gfree(void *p);
38 * Report on unfreed memory.
40 extern void gMemReport(FILE *f);
46 * Allocate memory and copy a string into it.
48 extern char *copyString(char *s);