shithub: riscv

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