shithub: riscv

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