2 * 2-5. Write the function any(s1,s2), which returns the first location in
3 * the string s1 where any character from the string s2 occurs, or -1 if s1
4 * contains no characters from s2. (The standard library function strpbrk
5 * does the same job but returns a pointer to the location.)
9 int any(char s1[], char s2[]);
10 int strchr(const char *s, int c);
13 printf("2: %d\n", any("The quick brown fox jumped over the lazy dog.", "aeiou"));
14 printf("5: %d\n", any("The quick brown fox jumped over the lazy dog.", "aiou"));
15 printf("6: %d\n", any("The quick brown fox jumped over the lazy dog.", "aio"));
16 printf("12: %d\n", any("The quick brown fox jumped over the lazy dog.", "ao"));
19 int any(char s1[], char s2[]) {
21 for (int i = 0; s1[i] != '\0'; ++i)
26 int strchr(const char *s, int c) {
28 for (i = 0; *(s+i) != c; ++i)