shithub: scc

ref: 2699bac1e5869e2ee92f588d8c91b3a7d19fbaf0
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;
}