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