you might want to try
something like this
Code:
int strpos(char *str,char *term)
{
int r=0;
while( *str != 0)
{
if( *str==term[0] )
for(int i=1;i<300;i++)
{
if(term[i]==0) return r;
if(str[i]!=term[i]) break;
}
str++;
r++;
}
return -1;
}
hrindustries . co . uk
Time and Attendance Solutions From HR Industries