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