shithub: scc

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