strnpbrk
while ((p = strnpbrk(q, "\t\n", nleft)) != NULL) {
extern const char *strnpbrk(const char *, const char *, size_t);