git: 9front

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