Count the number of occurence of substring c in string s, and return the number of occurence, if c is not contained in s, zero is returned.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s |
String where to search the substring |
||
character(len=*), | intent(in) | :: | c |
Substring to search |