shithub: scc

ref: 81b6d6367c1c9c957ca910e5f8b5fb70adfa9c21
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;
}