git: 9front

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