2 * UCW Library -- Memory Allocation
4 * (c) 2000 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
18 void *x = malloc(size);
20 die("Cannot allocate %zu bytes of memory", size);
25 xmalloc_zero(size_t size)
27 void *x = xmalloc(size);
36 * Maybe it is a little waste of resources to make this a function instead
37 * of a macro, but xmalloc() is not used for anything critical anyway,
38 * so let's prefer simplicity.