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