strcnt
Previous Topic  Next Topic 

Synopsis:

       true_false=strcnt(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 1,  otherwise it will return 0 if str2 was not found in str1.


For example:


       string="the cat sat on the mat";


       // This will return 1

       true_flase=strcnt(string,"cat");


Returns:  Returns 1 if str1 contains str2 otherwise returns 0