git: 9front

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