Re: does this 'break' exits the loop or is it simply an error exit?
Re: does this 'break' exits the loop or is it simply an error exit?
Posted Dec 27, 2014 1:10 UTC (Sat) by reubenhwk (guest, #75803)In reply to: Re: does this 'break' exits the loop or is it simply an error exit? by ldo
Parent article: The "too small to fail" memory-allocation rule
Are you choosing this...
for (i = 0; i < MAX; ++i) {
do { /*once*/
if (err) {
i = MAX;
break;
}
} while (false);
}
over this?
goto cleanup;