shithub: scc

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