shithub: scc

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