Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "string.h"
- #include "stdio.h"
- void main() {
- int count = 0;
- char R[51],rc[21];
- const char *tmp = R;
- gets(R);printf("\n");gets(rc);
- while(tmp = strstr(tmp, rc))
- {
- count++;
- tmp++;
- }
- printf("%d",count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement