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