6 ms·
A function call in a for loop's conditional is practically C best practice. K&R do it on almost every page.
by qntm 15y ago
A function call in a for loop's conditional is practically C best practice. K&R do it on almost every page.
- Locke1689 15y agoThey usually only do it for builtins (e.g., strlen) and const functions, which makes this example a lot safer.