shithub: scc

ref: 68fc5b73b8cc4ba666d8d30d74762c71a0653a9d
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) ? s : NULL;
}