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