shithub: riscv

ref: c924edb91ddb256ebe7a3654697494ac30eff8da
dir: /sys/src/libc/port/strlen.c/

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

long
strlen(char *s)
{

	return strchr(s, 0) - s;
}