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