How does one run a linux system command from a D main() fcn ?

Dennis dkorpel at gmail.com
Tue Aug 4 21:44:41 UTC 2020


On Tuesday, 4 August 2020 at 19:52:47 UTC, Andy Balba wrote:
> i.e.  D  equivalent to C++ command system("MyExe")

Apart from std.process, you can also call the C function in D 
after importing core.stdc.stdlib:

https://dlang.org/library/core/stdc/stdlib/system.html



More information about the Digitalmars-d-learn mailing list