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