Nick Sabalausky Wrote:

> Something else interesting to note for anyone who didn't already know (like 
> me), is that if you change the body of execA's main to:
> 
> write("In A"); // Note this doesn't automatically flush
> system("execB");
> 
> Then the output is backwards (on either Windows or Linux):
> 
> In B
> In A

To get expected behavior adjust console buffering with setvbuf and use system();

Reply via email to