shithub: scc

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