ref: d8487e98c64cc1473e6d4158392850a9d434e418
dir: /sys/src/cmd/unix/u9fs/utflen.c/
#include <plan9.h> int utflen(char *s) { int c; long n; Rune rune; n = 0; for(;;) { c = *(uchar*)s; if(c < Runeself) { if(c == 0) return n; s++; } else s += chartorune(&rune, s); n++; } return 0; }