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