The standard C strlen() also takes a const char *, because strlen() doesn't need to modify the string that it is passed.