shithub: riscv

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