shithub: scc

ref: 7b8f9336dd0170c6dcaf12368b0c03c8019c5ab5
dir: /lib/c/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;
}