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
ftell
There is no 64b aware method in C99 standard. What OS/environment are you using? On windows, there is _ftelli64.
_ftelli64
On other platforms, look at http://forums.codeguru.com/showthread.php?277234-Cannot-use-fopen()-open-file-larger-than-4-GB