/* Deallocate a memory block from a memory block previously declared with MEMB(). */
char memb_free(struct memb_blocks *m, char *ptr)
/* Deallocate a memory block from a memory block previously declared with MEMB(). */
char memb_free(struct memb_blocks *m, char *ptr)
{
  int i;
  char *ptr2;
  ptr2 = m->mem;
  for(i = 0; i < m->num; ++i) {
    if(ptr2 == ptr - 1) {      
      return --*ptr2;
    }
    ptr2 += m->size + 1;
  }
  return -1;
}