Is there any reason why the parameter couldn't be a `const char*` which would indicate it isn't modified by this function?