shithub: scc

ref: d0a9d4f58eb08bf3d1ffff3ce0da5b9d9f4b497a
dir: /src/libc/string/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;
}