Ad

man strpbrk.3
man strchrnul.3

strpbrknul locates the first occurrence in the string s of any of the bytes in the string accept, or a pointer to the null byte at the end of s if no such byte is found.

#include <string.h>

const char* strpbrknul(const char* s, const char* accept){
	for(; *s; ++s)
		if(strchr(accept, *s)) return s;
	return s;
}