会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
haxnt
博客园
首页
新随笔
联系
订阅
管理
07 2017 档案
c语言利用读取命令行(多行读取)
摘要:#include #include #include int main() { FILE *fh = popen("ifconfig 2> /dev/null", "r"); char iwstation[4096] = {0}; char total[4096] ={0}; while(fgets(iwstation, 4096, fh)!=NULL){ strc...
阅读全文
posted @
2017-07-21 16:42
haxnt
阅读(2719)
评论(0)
推荐(0)
公告