News for hackers. Stuff that matters.
Re:Why is strlen so complex in C? by gonzo on Monday August 26, 2019 @05:51PM (#20804148)
The accepted answer fails to note that the subject code is a high-performance variant of strlen(), and has basically taken the ideas from many highly-optimized memcpy() routines.

There is nothing wrong with the simpler version, but it’s not as fast (for longer strings).

There are no comments on this comment yet.