/* erealloc.c -- reallocate memory, die if error * * char *oldbuf; * char *newbuf; * unsigned size; * newbuf = erealloc(oldbuf, size); */ #include char *realloc(); char * erealloc(b, s) char *b; unsigned s; { if (NULL == (b = realloc(b, s))) error("no memory"); return(b); }