ref: 1fca5f75797af9c8c78d4cd022c41b22040de29a 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; }