3 Returns first location of in data string where any character from test string occurs or -1 if none found.
9 int any(char test
[], char data
[])
13 for(i
= 0; data
[i
] != '\0'; i
++)
17 while(test
[j
] != '\0')
19 if(test
[j
] == data
[i
]) { return i
; } else { j
++; }
26 char data
[] = "123bcx";
30 int ans
= any(test
, data
);