ref: c8a370bc13b78bbf98b2d25446d80444991760d1
dir: /libc/src/strchr.c/
/* See LICENSE file for copyright and license details. */
#include <string.h>
char *
strchr(const char *s, int c)
{
while (*s && *s != c)
++s;
return (*s == c) ? (char *)s : NULL;
}