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

24th Jul 2019, 8:30 AM
Dorotea
1 Resposta