shithub: riscv

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