Mega Code Archive

 
Categories / C / Code Snippets
 

Scan string for specified characters

#include <stdio.h> #include <string.h> int main(void) { char *p; p = strpbrk("I Love Clementine", " absj"); printf(p); return 0; }