shithub: riscv

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