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