shithub: scc

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