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