摘要: char ret[1024]; char *DoSysCmd(char * cmdline){ FILE *fp; char line[32]; char cmdtmp[256]; memset(cmdtmp,0x00,256); sprintf(cmdtmp,"%s 2>&1",cmdline);//stderr是2,把2转向1 memset(r... 阅读全文
posted @ 2008-08-01 16:48 麦壳饼 阅读(1155) 评论(0) 推荐(0) 编辑