memstr
extern char *memstr(const char *, char *, size_t, size_t);
s = (u_char *)memstr("PNA", (char *)membuf, 3, dlen);