TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Efficient strlen implementation in C (2007)

3 pointsby geospeckover 7 years ago

2 comments

CarolineWover 7 years ago
Quoting:<p><i>&gt; As you can see, it can be totally transparent for the user. You just have to take care ...</i><p>It&#x27;s that word <i>just</i> that bothers me.<p>&quot;Programming is simple, you just have to write the code.&quot;<p>&quot;Bug-free programming is easy, you just have to avoid putting bugs in.&quot;<p>Yes, this code &quot;just&quot; requires some care.
tqhover 7 years ago
Broken. This will generate page faults if your string ends at a page-boundry and start address isn&#x27;t aligned on four bytes.
评论 #15391401 未加载