3 * File name: ir/adt/xmalloc.h
4 * Purpose: More comfortable allocations.
5 * Author: Markus Armbruster
7 * Created: 1999 by getting from fiasco
9 * Copyright: (c) 1995, 1996 Markus Armbruster
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
19 /* xmalloc() & friends. */
21 void *xmalloc(size_t size);
22 void *xcalloc(size_t num, size_t size);
23 void *xrealloc(void *ptr, size_t size);
24 char *xstrdup(const char *str);
27 #define xfree(ptr) free(ptr)
29 #endif /* _XMALLOC_H_ */