#include int strlen(const char *s) // computes length of string s { const char *t = s; while( *t++ != '\0' ) {} // go to end of string return(t - s - 1); // length of string without terminator } main() { cout << strlen("abcde") << endl; }