Clean up R_ARM_PC24 handling.
[glibc.git] / string / bug-strstr1.c
blob889de12955529079bab2a0c59f5f79bca37dfbc3
1 #include <stdio.h>
2 #include <string.h>
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";
9 const char needle[] =
10 "_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD";
12 const char* sub = strstr (haystack, needle);
14 if (sub != NULL)
16 int j;
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] ? ' ' : '^');
21 puts ("");
22 return 1;
25 return 0;