shithub: scc

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