shithub: scc

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