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