ref: 88412aa050adddde5cacf3a45e914bad9a5d3e22 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; }