Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!caip!clyde!cbatt!cbosgd!ihnp4!twitch!grt From: grt@twitch.UUCP ( G.R.Tomasevich) Newsgroups: net.lang.c Subject: Reply to jeff at isi-vaxa Message-ID: <402@twitch.UUCP> Date: Tue, 26-Aug-86 08:10:21 EDT Article-I.D.: twitch.402 Posted: Tue Aug 26 08:10:21 1986 Date-Received: Wed, 27-Aug-86 11:39:29 EDT Distribution: net Organization: AT&T Bell Labs, Holmdel Lines: 27 Keywords: avoiding goto The mail failed with some long reply I don't understand. < if ( < ( (status = step_1()) == SUCCESS) && < ( (status = step_2()) == SUCCESS) && < . < . < . < ( (status = step_3()) == SUCCESS) < ); One way to avoid this is to store the pointers to the functions step_?() in an array and then run a for() loop with a break on failure. E. g.: int step_1(), step_2() ...; int (*fst[])() = { step_1, step_2, ... }; #define N some_number /* whatever number there are */ int i, status; for(i=0; i