Write a C plus plus Program to find the length of the string using pointer?

int strlen (const char *psz) {

int i = 0;

while (*psz++ != '\0') i++;

return i;

}