Substring occurrences in a string (C) | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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
0 Respuestas