Go to the documentation of this file.
26 #define BEGIN_C_DECLS extern "C" {
33 #define XCALLOC(type, num) \
34 ((type*) xcalloc ((size_t)(num), (size_t)sizeof(type)))
36 #define XMALLOC(type, num) \
37 ((type*) xmalloc((size_t)((num) * sizeof(type))))
39 #define XREALLOC(type, p, num) \
40 ((type*) xrealloc ((p), (size_t)((num) * sizeof(type))))
42 #define XFREE(stale) \
44 if (stale) { free(stale); stale=0; } \
50 extern void*
xmalloc(
size_t num);
51 extern void*
xrealloc(
void*
p,
size_t num);
void * xrealloc(void *p, size_t num)
void * xmalloc(size_t num)
BEGIN_C_DECLS void * xcalloc(size_t num, size_t size)