blob: 5e0c1a1a4487667f85525a61a59270d44de32ff7 [file] [log] [blame]
#include <string.h>
char *strchrnul(const char *s, int c)
{
char *p = strchr(s, c);
return p ? p : (char *)s + strlen(s);
}