Synopsis:
offset=strpos(str1,str2)
Arguments:
str1 - The string to search
str2 - The sub-string to search for in str1
Description: This function searchs through str1 for the first occurance of the sub-string str2. If str2 is found in str1 then this function returns the character offset in str1 where the first occurance of str2 was found, otherwise it will return 0 if str2 was not found in str1.
For example:
string="the cat sat on the mat";
// This will return offset 5
offset=strcnt(string,"cat");
Returns: Returns the offset of the first occurance of str2 within str1, or 0 if str2 is not found within str1.