shithub: riscv

ref: 1eadcba462d82b73eecfcc0d7aabd56cdc3d13e1
dir: /sys/src/libc/port/runestrlen.c/

View raw version
#include <u.h>
#include <libc.h>

long
runestrlen(Rune *s)
{

	return runestrchr(s, 0) - s;
}