It sounds like all you have to do is call it four times to check for four different things:
Code:
search( array, size, 10 );
...two more...
search( array, size, 11 );
Call the same function multiple times with different key values. (Assuming the key value, the last parameter, is what you're looking for.) Naturally you'll need to check the return value of the function, I omitted that step.
[edit]
Here is an example:
Code:
int myfun( char *s )
{
printf("%s", s );
return 0;
}
int main( void )
{
myfun( "Hello " );
myfun("there, " );
myfun("how " );
myfun("are " );
myfun("you?\n" );
return 0;
}
That's what they mean by using the same function more than once without changing its signature. You're calling the same function over and over, you're just passing it something different each time. In your case, you're just changing what you search for.
[/edit]
Quzah.