strpbrk - Returns a pointer to the first character in str1 that matches any character in str2 in C


  #include <stdio.h>
  #include <string.h>

  int main(void)
  {
    char *p;

    p = strpbrk("forget code", "abcg");
    printf(p);

    return 0;
  }




Output:
get code