shithub: scc

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