Re: There would be precisely as many "goto" statements
Re: There would be precisely as many "goto" statements
Posted Jan 16, 2015 18:23 UTC (Fri) by zlynx (guest, #2285)In reply to: Re: There would be precisely as many "goto" statements by epa
Parent article: The "too small to fail" memory-allocation rule
Whenever I got to wanting labeled blocks in C, I sat down (OK,really I was already sitting down) and decided to add another function instead.
That almost always made the code cleaner, and let me exit the block (which was now a function) with a simple "return."