开发者

What is D's version of C++'s system function?

How do I execute a command in the system shell in D (preferably T开发者_JAVA技巧ango)?


Phobos provides std.process (D1.x) (D2.x). Then you would just use the system() call. The exec commands are also available here.


tango.stdc.stdlib should, as tango's docs say,

provide[s] an essentially complete interface to the standard C library (according to ISO/IEC 9899:1999)

(stdlib.h is where C defines system).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜