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