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