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