4 static const char fox[] = "The quick brown fox jumped over the lazy dogs.";
8 printf ("Testing strpbrk():\n");
9 if (strpbrk (fox, "qwerty") != &fox[2]) {
10 printf ("\nThe first 'e' wasn't found.\n");
12 if (strpbrk (fox, "QWERTY") != &fox[0]) {
13 printf ("The 'T' wasn't found.\n");
15 if (strpbrk (fox, "asdfg") != &fox[16]) {
16 printf ("The 'f' wasn't found.\n");
18 if (strpbrk (fox, "nxv,zmb") != &fox[10]) {
19 printf ("The 'b' wasn't found.\n");
21 if (strpbrk (fox, "!@#$%^&*()-+=[];:',/?<>.") != &fox[45]) {
22 printf ("The '.' wasn't found.\n");
25 printf ("\nFinished.\n");