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