Windows command line and execv
Kagamin
spam at here.lot
Fri Aug 20 12:26:19 PDT 2010
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();
More information about the Digitalmars-d
mailing list