Hi bitcoin,
Here is a quick example for you :
#include <stdio.h>
extern int __stdcall BMBinSearch(int,char *,int,char *,int);
int main(void)
{
char s[]={0x1,0x2,0x4,0x10,0x3,0x0,0x5,0x6,0x12};
char t[]={0x3,0x0,0x5};
int u;
u=BMBinSearch(2,s,9,t,3);
printf("Zero based offset of the pattern 0x3,0x0,0x5 = %d",u);
}