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