shithub: riscv

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