4 int main (int argc
, char** argv
)
6 const char haystack
[] =
7 "F_BD_CE_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_C3_88_20_EF_BF_BD_EF_BF_BD_EF_BF_BD_C3_A7_20_EF_BF_BD";
10 "_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD";
12 const char* sub
= strstr (haystack
, needle
);
18 fprintf (stderr
, "BUG: expected NULL, got:\n%s\n%s\n", sub
, needle
);
19 for (j
= 0; needle
[j
] != '\0'; ++j
)
20 putchar (needle
[j
] == sub
[j
] ? ' ' : '^');