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