shithub: scc

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