标题: 请教各位 LINUX下ANSI C 编程中关于system()返回值以及运行情况 [打印本页] 作者: fly_lonely 时间: 2005-01-27 10:45 标题: 请教各位 LINUX下ANSI C 编程中关于system()返回值以及运行情况 请教各位 LINUX下ANSI C 编程中关于system()返回值以及运行情况,
因为同样的system()调用在UNIX下没有问题,而在LINUX下返回值为(32512)???
请各位高手讲解.....谢谢作者: MatrixResolver 时间: 2005-01-27 11:05 标题: 请教各位 LINUX下ANSI C 编程中关于system()返回值以及运行情况 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.