delorie.com/archives/browse.cgi | search |
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 <ethros AT earthlink DOT net> |
Subject: | Exiting from system() |
To: | DJGPP List <djgpp AT delorie DOT com> |
Message-id: | <0K7J008HL7GIRYO0@mta4.srv.hcvlny.cv.net> |
MIME-version: | 1.0 |
X-Mailer: | QUALCOMM Windows Eudora Version 7.1.0.9 |
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 <stdlib.h> #include <stdio.h> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |