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