]> mj.ucw.cz Git - libucw.git/blob - lib/realloc.c
HASH_WANT_FIND_NEXT fixed and its declaration changed
[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 #ifndef DMALLOC
12
13 void *
14 xrealloc(void *old, uns size)
15 {
16   void *x = realloc(old, size);
17   if (!x)
18     die("Cannot reallocate %d bytes of memory", size);
19   return x;
20 }
21
22 #endif