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