int my_strlen(const char *str) { const char *p; for (p = str; *p; ++p) ; return p - str; }