shithub: riscv

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