Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I concur. Not to mention, this code wouldn't pass the automatic static analysis we use for all commits to our repository, so it literally would never come up as is. We turn on "warnings are errors" and turn on most warnings. I literally wouldn't think this code could compile (or at least get committed) as written, so would assume there was stuff missing for the sake of brevity.


It's testing to see if people understand C.

No, it's not omitted for the sake of brevity. The point is that if you can't find bugs in trivial code, you shouldn't call yourself a C programmer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: