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