git: 9front

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