shithub: riscv

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