shithub: scc

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