ref: f3032eb9536fef95fc35a58a6831540b6ffe0893 dir: /sys/src/libc/port/runestrchr.c/
#include <u.h> #include <libc.h> Rune* runestrchr(Rune *s, Rune c) { Rune r; if(c == 0) while(*s++) ; else while((r = *s++) != c) if(r == 0) return 0; return s-1; }