git: 9front

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