shithub: scc

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