shithub: scc

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