ref: 761bf6c3477b2bef675c20aad954acae02b923ed 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; }