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