ftell at a position past 2GB

后端 未结 4 659
孤独总比滥情好
孤独总比滥情好 2020-12-03 22:19

On a 32-bit system, what does ftell return if the current position indicator of a file opened in binary mode is past the 2GB point? In the C99

4条回答
  •  不思量自难忘°
    2020-12-03 22:41

    There is no 64b aware method in C99 standard. What OS/environment are you using? On windows, there is _ftelli64.

    On other platforms, look at http://forums.codeguru.com/showthread.php?277234-Cannot-use-fopen()-open-file-larger-than-4-GB

提交回复
热议问题