Skip to content

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').

Notifications You must be signed in to change notification settings

hhhhhhhhhhhhhhhhhhhhhhhhhhhfs/Get-text-length

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Get-text-length

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");

About

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').

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages