/* strlen takes in a pointer to a character (i.e. address of a string) and returns the number of characters in the string (not counting the null character) */ int strlen(const char * s) { int i = 0; while (s[i] != '\0') i++; return i; } int strlen(const char * s) { int i; for (i = 0; s[i]; i++) ; return i; } int strlen(const char * s) { int i = 0; while (*s++ != '\0') i++; return i; }