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