shithub: scc

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