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