Use this code to count the length of a string. This function splits the string into chunks of size_t to improve performance. It reduces the number of iterations, resulting in faster detection of the null character ('\0').
Use:
unsigned long long length = len("hi");