Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 80,923 posts.

Any topic
Any year
23345

No strcpy either

Some time ago I mentioned that we went through the curl source code and eventually got rid of all strncpy() calls. strncpy() is a weird function with a crappy API. It might not null terminate the destination and it pads the target buffer with zeroes. Quite frankly, most code bases are probably better off completely ……