Find the length of a string, but not the function strlen()