View Single Post
Old 08-07-2006, 06:08 AM   #4 (permalink)
AssKoala
Anti-Zealot
 
AssKoala's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 72
AssKoala is on a distinguished road
Send a message via AIM to AssKoala Send a message via MSN to AssKoala Send a message via Yahoo to AssKoala
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
__________________
If you always think like an expert, you'll always be a beginner. | "A handful of knowledgeable people is more effective than an army of fools" -Writing Secure Code, 2nd Ed.
AssKoala is offline   Reply With Quote