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