shithub: scc

ref: 1ec4d62ccec0872d1ecc64f6834e5ea8d36f7a1f
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;
}