shithub: scc

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