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