CODE
int string8::find_first(const char * str,int start)
{
unsigned n;
if (start<0) start=0;
for(n=start;n<used;n++)
{
if (!strcmp(data.get_ptr()+n,str)) return n;
}
return -1;
}
{
unsigned n;
if (start<0) start=0;
for(n=start;n<used;n++)
{
if (!strcmp(data.get_ptr()+n,str)) return n;
}
return -1;
}
It'll find substring in string only if it is placed at the end of the string.
Same in find_last(const char*,int)...