Large file with c program
When learning about random access files I was presented with this program that I recreated.
What im wondering is why it creates a file that is 768mb is size. Is this the correct size because when a sizeof is done on just one of these stuctures i get a integer of 44. Im assumeing that 44 is in bytes. here is the code Code:
|
Quote:
This way you have an endless loop that creates an endlessly growing file. Replace the '1' (one) with an 'i' (small I), and your program will create a 4400-byte file as expected. |
wooops!
LOL I really need to stop writeing code at 3am :p thanks sorry for the stupid post. |
I couldn't believe it when you said what the size was, so I ran it and had to abort it. Looking at the following line shows the error.
Code:
<edit>seems i was a little late at posting this, but thanks for making my windows box go belly up ;) |
yea the 768mb aparently is the space im allowed on my shell account :p
when i ran this code in my bochs dos it crashed the os. |
All times are GMT -5. The time now is 11:29 AM. |