system vs. execvp ?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Sep 22 16:12:34 PDT 2012


On 9/23/12, Peter Sommerfeld <noreply at rubrica.at> wrote:
> What is wrong here?

  string[] cmd;
  cmd ~= "dmd";
  cmd ~= "src/xyz.d";
  int i = execvp("dmd",cmd);

1st arg should always be the app name, even though apps typically
ignore/skip the first arg.


More information about the Digitalmars-d-learn mailing list