X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Sun, 21 Sep 2008 02:02:08 -0400 From: Ethan Rosenberg Subject: Exiting from system() To: DJGPP List Message-id: <0K7J008HL7GIRYO0@mta4.srv.hcvlny.cv.net> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT Reply-To: djgpp AT delorie DOT com Dear List - Thanks for all your excellent help in the past. I wish to write the following type of program: #include #include int main(void) { system(prog1); system(prog2); } If prog1 terminates with an exit value of 1, which will indicate an error condition in prog1, I do not wish that prog2 should run. How do I do it? Thanks again. Ethan Rosenberg