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