git: 9front

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