]> mj.ucw.cz Git - libucw.git/blob - lib/realloc.c
Generate index cards.
[libucw.git] / lib / realloc.c
1 /*
2  *      Sherlock Library -- Memory Re-allocation
3  *
4  *      (c) 1997 Martin Mares <mj@ucw.cz>
5  */
6
7 #include "lib/lib.h"
8
9 #include <stdlib.h>
10
11 void *
12 xrealloc(void *old, uns size)
13 {
14   void *x = realloc(old, size);
15   if (!x)
16     die("Cannot reallocate %d bytes of memory", size);
17   return x;
18 }