ref: d1475c2e8a729ae33f2f8fd94ad0b54b519ce8c3
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) ? (char *) s : NULL;
}