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