ref: 30d4d8984bfc64e971bfbb3b913c37ed8a8da17b dir: /sys/src/libc/port/strlen.c/
#include <u.h> #include <libc.h> long strlen(char *s) { return strchr(s, 0) - s; }