shithub: riscv

ref: 21669c4c9734c948eb3be971db7a345b5349469a
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;
}