version 1.4, 2015/10/06 18:32:20 |
version 1.5, 2016/07/18 18:35:05 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <ohash.h> |
#include <ohash.h> |
|
|
void *xmalloc(size_t sz, void *arg) { return calloc(1,sz); } |
static void *xmalloc(size_t, void *); |
void *xcalloc(size_t nmemb, size_t sz, void *arg) { return calloc(nmemb,sz); } |
static void *xcalloc(size_t, size_t, void *); |
void xfree(void *p, void *arg) { free(p); } |
static void xfree(void *, void *); |
|
|
|
|
|
static void * |
|
xmalloc(size_t sz, void *arg) { |
|
return calloc(1,sz); |
|
} |
|
|
|
static void * |
|
xcalloc(size_t nmemb, size_t sz, void *arg) |
|
{ |
|
return calloc(nmemb,sz); |
|
} |
|
|
|
static void |
|
xfree(void *p, void *arg) |
|
{ |
|
free(p); |
|
} |
|
|
int |
int |
main(void) |
main(void) |