shithub: scc

ref: 8b6a2d7d21c67db8b1fbc4eaabf3496bcc07941d
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;
}