开发者

Implementation of rewind(file offset) in c

开发者 https://www.devze.com 2023-04-03 05:25 出处:网络
Can anyone explain the implementation/algo tha开发者_Go百科t was used in rewind function? or is it possible to implement rewind function using lseek()?Here\'s a quote from a reference:

Can anyone explain the implementation/algo tha开发者_Go百科t was used in rewind function? or is it possible to implement rewind function using lseek()?


Here's a quote from a reference:

A call to rewind is equivalent to:

fseek ( stream , 0L , SEEK_SET );

except that, unlike fseek, rewind clears the error indicator.

http://www.cplusplus.com/reference/clibrary/cstdio/rewind/

0

精彩评论

暂无评论...
验证码 换一张
取 消