git: 9front

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