55 memset(m->count, 0, m->num);
56 memset(m->mem, 0, m->size * m->num);
64 for(i = 0; i < m->num; ++i) {
65 if(m->count[i] == 0) {
70 return (
void *)((
char *)m->mem + (i * m->size));
87 ptr2 = (
char *)m->mem;
88 for(i = 0; i < m->num; ++i) {
90 if(ptr2 == (
char *)ptr) {
105 memb_inmemb(
struct memb *m,
void *ptr)
107 return (
char *)ptr >= (
char *)m->mem &&
108 (
char *)ptr < (
char *)m->mem + (m->num * m->size);