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