Why does open make my file descriptor 0?

前端 未结 4 1330
自闭症患者
自闭症患者 2020-12-07 03:52

I\'m working on a program that is using a pipe and forks and need to change the write end to an output file. But when I open a file the file descriptor is 0 which is usuall

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 04:33

    In C, relational operators have higher precedence than assignment operators.

提交回复
热议问题