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