summaryrefslogtreecommitdiff
path: root/src/string/strlen.c
AgeCommit message (Collapse)AuthorLines
2012-09-27slightly cleaner strlen, also seems to compile to better codeRich Felker-6/+4
testing with gcc 4.6.3 on x86, -Os, the old version does a duplicate null byte check after the first loop. this is purely the compiler being stupid, but the old code was also stupid and unintuitive in how it expressed the check.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+21