shithub: riscv

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