Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
FUNCION strstr()
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void) { char texto[10001]; char cadena[101]; scanf("%10000[^\n]\n", texto); scanf("%100[^\n]\n",cadena); // Proceso char *puntero = texto; int contador = 0; while ( (puntero = strstr(puntero,cadena)) != NULL) { contador ++; puntero ++; } printf("\n%d",contador); return 0; }
run
|
edit
|
history
|
help
0
NO OF NODES IN LINK LIST
multi dimension sum
C_141203_CadenasVarias
Max
18BCE2182 ASSESS_2 Q1
TopTriangle.c
Rotación matriz anti horaria
Spring 2017 Project 2 v1.2
date diff sample
2-D array