【发布时间】:2021-03-16 13:30:45
【问题描述】:
大概,这行应该没有效果;从当前位置寻找 0 个字节。 但是,我在一些遗留代码中找到了该行,如果没有该行,似乎没有任何工作 - 即使在 python 中,具有等效的 fp.seek(0, os.SEEK_CUR)
它只是一个缓冲的东西,还是更深层次的东西?
【问题讨论】:
-
A successful call to the fseek() function clears the end-of-file indicator for the stream and undoes any effects of the ungetc(3) and ungetwc(3) functions on the same stream.