shithub: scc

ref: a9d67e014c29b320aeebc0b1e8bdf377cd9f5c0d
dir: /lib/c/src/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) ? (char *)s : NULL;
}