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