shithub: riscv

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