summaryrefslogtreecommitdiff
path: root/src/string/strchrnul.c
blob: 5e0c1a1a4487667f85525a61a59270d44de32ff7 (plain)
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);
}