shithub: riscv

ref: 8820b3d9ea682635f35d5775bfa68831a5ad30ed
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;
}