请教各位 LINUX下ANSI C 编程中关于system()返回值以及运行情况
请教各位 LINUX下ANSI C 编程中关于system()返回值以及运行情况,
因为同样的system()调用在UNIX下没有问题,而在LINUX下返回值为(32512)???
请各位高手讲解.....谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
To use the system( ) function, you give it a character array that you would normally type at the operating system command prompt. This can also include command-line arguments, and the character array can be one that you fabricate at run time. The command executes and control returns to the program. You can find definition of system() in the header file stdlib.h. It is a pure c header file. I am confused about why you wanna know the return value of that function.