Quote:
|
Originally Posted by DJMaze I didn't because Windows mostly uses DWORD for filesizes and DWORD is unsigned long, so Windows will crash on terrabytes anyway. |
Well, Windows uses two DWORD's to represent the File Size. Check out the documentation for "GetFileSize()". Maximum file size (assuming crash at a file that's too large) is 2^64 bytes on 32-bit systems.
Not that that matters since the File System will determine the maximum size
Quote:
I just wanted one using math.h and try to reduce the ammount of code used, and i must say it can't be less then 4 lines |
Oh, don't get me wrong, yours is elegant and a fancy way to do it. I like it
