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