#include #include #include #include void *xalloc(size_t sz, void *arg) { return(calloc(sz,1)); } void xfree(void *p, size_t sz, void *arg) { free(p); } int main(void) { struct ohash h; struct ohash_info i; i.halloc = i.alloc = xalloc; i.free = free; ohash_init(&h, 2, &i); ohash_delete(&h); return 0; }