3 ms·
> 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 compa
by 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.