Breaking out of several nested loops

Dan Messinger dan at digi-g.UUCP
Fri Oct 5 00:34:03 AEST 1984


If possible, you could make that section of code a seperate function,
and use 'return' from any point in the nested loops to effectively break
out.  The number of parameters that would be needed to be passed to this
routine could make this unacceptable, in which case you could use the
dreaded 'goto'.



More information about the Comp.lang.c mailing list