如何让pipe()在C中工作 [英] How do I get pipe() to work in C

查看:85
本文介绍了如何让pipe()在C中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

nvm -figured out-

nvm -figured it out-

nvm -figured it out-




nvm -figured it out-

nvm -figured it out-





我尝试了什么:



- nvm想出来了 -

nvm -figured out -



What I have tried:

-- nvm figured it out --
nvm -figured it out-

nvm -figured it out-

nvm -figured it out-

推荐答案

可以是|是一些打破数据流的命令令牌



在这里你循环它

Can it be that the "|" is some command token which is breaking the data flow

Here you loop through it
if(!strcmp(args[i],"|")){

使用调试器查找并隔离问题。检查所有代码行或功能是否正常以及出现问题的位置。通常有助于在命令行中输出更多的输出来解决它。

Use the debugger to find and isolete the problems. Check til what code line or feature all is fine and where the problems occur. Often helps to make some more output in the command line to figure it out.


这篇关于如何让pipe()在C中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆