git: 9front

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