tar*_*yte 14 c bash gzip
有没有办法运行命令行实用程序,例如gzip,进入C应用程序?
gzip
jay*_*ren 25
用途system():
system()
#include <stdlib.h> int status = system("gzip foo");
有关man 3 system如何使用它的更多详细信息,请参见手册页().
man 3 system
顺便说一下,这个问题已经有了答案:如何使用参数在linux中的C代码中执行外部程序?
归档时间:
10 年,4 月 前
查看次数:
53400 次
最近记录: