git: 9front

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