+ 1
Substring occurrences in a string (C)
Hello! I have to find how many times is a substring present in a string. I tried with while((strstr(str, sub))!=NULL){ (int) count++} But does not work Could you help me pleaseđ
1 Answer
Hello! I have to find how many times is a substring present in a string. I tried with while((strstr(str, sub))!=NULL){ (int) count++} But does not work Could you help me pleaseđ