07-25-2006 04:02 AM
07-25-2006 04:27 AM
Hello Jacky,
the function BinSearch should do what you're looking for:
int item = 0x34; index = BinSearch (A, 3, sizeof (int ), &item, IntCompare);
int item = 0x34;
index = BinSearch (A, 3, sizeof (int ), &item, IntCompare);
This piece of code should result in an index = 1.