shithub: scc

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