shithub: scc

ref: e389dc2387eb8f243a3361263f5ac1d85e95b7ec
dir: /lib/c/src/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;
}