Windows command line and execv

Kagamin spam at here.lot
Fri Aug 20 12:29:28 PDT 2010


Kagamin Wrote:

> 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();

system() is also a C standard function.


More information about the Digitalmars-d mailing list