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