git: 9front

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