shithub: riscv

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