/**********************************************************************
This file is part of Crack dot Com's free source code release of Golgotha.
for information about compiling & licensing issues visit this URL
 If that doesn't help, contact Jonathan Clark at 
  golgotha_source@usa.net (Subject should have "GOLG" in it) 
***********************************************************************/

#include "inc/search.hh"

i4_bool i4_base_bsearch(const void *member, w32 &loc,
                        const void *array, w32 member_size, w32 size, 
                        int (*compare)(const void *a, const void *b))
{
  w32 l=0,r=size,m;
  int c;

  while (l