#include <stdio.h> |
#include <string.h> |
int main( void ) |
{ |
char *string1 = "abcdefghijklmnopqrstuvwxyz" ; |
char *string2 = "onm" ; |
char *ptr; |
ptr = strpbrk (string1, string2); |
if (ptr) |
printf ( "strpbrk found first character: %c\n" , *ptr); |
else |
printf ( "strpbrk didn't find character in set\n" ); |
return 0; |
} |