开发者

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

开发者 https://www.devze.com 2023-01-04 17:17 出处:网络
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 a

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

精彩评论

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

关注公众号