shithub: riscv

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