git: 9front

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