#include <all_far.h>


#include "fstdlib.h"

int WINAPI StrPosStr(const char *str,const char *s,int pos)
{
	if(!str || !s || !*s || pos < 0 || pos >= (int)strlen(str)) return -1;

	for(int l = (int)strlen(s),n = pos; str[n]; n++)
		if(StrNCmp(str+n,s,l) == 0) return n;

	return -1;
}
