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