1 /* $Id: Realloc.c,v 1.8 1994/06/24 11:06:27 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* M E M O R Y A L L O C A T I O N R O U T I N E S */
8 /* The memory allocation routines offered in this file are:
10 char *Realloc(ptr, n) : reallocate buffer to n bytes
16 extern char *malloc();
17 extern char *realloc();
29 if (!ptr) mptr = malloc(sz);
30 else mptr = realloc(ptr, sz);
31 if (sz && mptr == 0) No_Mem();