3 ms·
I suggest the author of that code try a denser language, one that requires more focus on individual characters, and figure out a more methodical approach to deb
by userbinator 4y ago
I suggest the author of that code try a denser language, one that requires more focus on individual characters, and figure out a more methodical approach to debugging. I saw the error at first glance, but that may just be because the code is in an unusual style (https://news.ycombinator.com/item?id=33768662); https://news.ycombinator.com/item?id=33768662); suggesting that a second pair of eyes will also help.
- MikePlacid 4y ago> that a second pair of eyes will also help. This code will not pass a code review in my last shop: 1. First get the return code: rc = memcmp(… 2. Then compare, and please put the constant first: if( 0!=rc ) … C and C++ are dangerous tools, you should not use in production all the “sugar” they provide.