shithub: scc

ref: 67d90c41c1d5ef13d67cc0a3ce2bd7de1cc53037
dir: /lib/c/strchr.c/

View raw version
#include <string.h>
#undef strchr

char *
strchr(const char *s, int c)
{
	while (*s && *s != c)
		++s;
	return (*s == c) ? (char *)s : NULL;
}