Proper/Efficient way to determine size of stdin in C

后端 未结 5 884
逝去的感伤
逝去的感伤 2021-01-16 21:49

Based on my previous question, what would be the proper yet efficient way to determine the size of stdin if stdin is coming from a pipe or a

5条回答
  •  深忆病人
    2021-01-16 22:00

    You can't.
    Imagine stdin is like a water tap.

    What you are asking is the same as "how much water is there in a tap"? :-)

提交回复
热议问题