0b44a031
1 2 3 4 5 6 7
#include <string.h> char *strchrnul(const char *s, int c) { char *p = strchr(s, c); return p ? p : (char *)s + strlen(s); }