Breaking out of several nested loops

Mark D. Tischler tischler at ihuxs.UUCP
Wed Oct 3 02:54:07 AEST 1984


A while ago, someone told me that they
thought it was possible to break out of
several nested loops at once using a
statement like "break 3".  It would,
for example, break out of the following
sequence:

	i = 1;
	while
	   .
	   .
	   for
	      .
	      .
	      switch
		 .
		 .
		 break;
	i = 2;

It doesn't seem to work, and I was wondering
if perhaps someone knew of a way to do
that without having to set 3 separate
boolean flags?  Please send mail to
me.  Thanks.
-- 

				Mark Tischler
				(312) 420-7272 (home)
				(312) 979-2626 (work)
				ihnp4!ihuxs!tischler



More information about the Comp.lang.c mailing list