ref: d94edd4b9a13e1ead5782c72753f3a6b5b02f2a6 dir: /libc/strchr.c/
#include <u.h> #include <libc.h> char* strchr(char *s, char c) { char *new = strdup(s); while(*new != c || *new != '\0') new++; if(*new == c) return new; return nil; }