shithub: scc

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