shithub: scc

ref: 8e8d93c0d70db35b5dbed8ea0aba54fb557bd15b
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;
}