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