shithub: scc

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