Anonymous user
Count occurrences of a substring: Difference between revisions
→{{header|C}}
Line 41:
#include <string.h>
int match(const char *s, const char *p, int overlap)
{
int c = 0, l = strlen(p);
|
Line 41:
#include <string.h>
int match(const char *s, const char *p, int overlap)
{
int c = 0, l = strlen(p);
|