+ 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 Resposta
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🙏