摘要: 在python里可以通过os.popen()和os.system()执行shell命令,C代码里自然也有相应的接口。如下一段代码: 1 /* 2 ** sample program by virHappy 3 */ 4 5 #include <stdio.h> 6 #include <stdlib.h> 7 #include <string.h> 8 #include <stdarg.h> 9 10 #define MAX_BUF_LEN 819211 12 /*13 ** conbine some string together accrodi 阅读全文
posted @ 2012-03-12 19:15 virHappy 阅读(1566) 评论(0) 推荐(0) 编辑