shithub: scc

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