strlen.c in glibc

March 10 2009, 6:05pm

strlen.c in glibcSource: sources.redhat.comReturn the length of the null-terminated string STR. Scan for the null terminator quickly by testing four bytes at a time.    Wow. Sometimes, I guess, performance trumps readability.