Monday, September 27, 2010

The right way and wrong way

I wrote a piece of code, what I had referred to as the most advanced I had done yet.



The only lingering unknown is what the pointer that fread() returns is really pointing to. Did it really load the whole file into RAM? What if the file was too big?

Right now it's straightforward code, but I want compartmentalize the file loading code into a function. The next two posts will be the wrong way to do this, and what I hope is the right way.

No comments:

Post a Comment