ref: 83550d836c6a99d1193da81efb18a6f00a464b57
dir: /sys/src/libc/port/utfrune.c/
#include <u.h>
#include <libc.h>
char*
utfrune(char *s, long c)
{
Rune r;
char buf[UTFmax + 1] = {0};
if(c < Runesync) /* not part of utf sequence */
return strchr(s, c);
r = c;
runetochar(buf, &r);
return strstr(s, buf);
}