git: 9front

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