/** * jb-ibs.c * An implementation of binary search by J.B. */ #include "ibs.h" int ibs(int *list, const int length, const int value) { int left=0, right = length-1, mid = length/2; while (right-left > 1) { if (list[mid] < value){ left = mid; } // end if list[mid]