Buffered and Unbuffered inputs in C

前端 未结 3 1169
执念已碎
执念已碎 2020-12-05 10:43

Is there any way to figure out whether the input is buffered or unbuffered (Apart from manual pages.)? Cant we figure out by looking a

3条回答
  •  伪装坚强ぢ
    2020-12-05 11:36

    You can associate a buffer with a file, including stdin, with setvbuf(). You can change the buffering mode to full, line, or none.

提交回复
热议问题