Write your own strlen() for a long string padded with '\0's
Given a big character array that represents a string such that all trailing non-string characters are filled with '\0' at the end, i.e, all leading characters are string characters, all trailing are '\0' and no garbage characters. Write an efficient function to find length of such a string. Examples: Input: str[] = {'g', 'e', 'e', 'k', '\0', '\0',