git: 9front

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