Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!td
From: td@alice.UUCP (Tom Duff)
Newsgroups: net.lang.c
Subject: Re: Breaking out of several nested loops
Message-ID: <3023@alice.UUCP>
Date: Wed, 3-Oct-84 00:43:51 EDT
Article-I.D.: alice.3023
Posted: Wed Oct  3 00:43:51 1984
Date-Received: Thu, 4-Oct-84 01:08:52 EDT
References: <631@ihuxs.UUCP>
Organization: AT&T Bell Laboratories, Murray Hill
Lines: 15

The correct way to break out of multiply nested control constructs (using the
example in the referenced article) without using 3 separate boolean flags is:

	i=1;
	while(...){
		...
		for(...;...;...){
			...
			switch(...){
				...
				goto Out;
			}
		}
	}
Out:	i=2;