right now i’m just gonna concentrate on getting the game to how i want and go
about memory leaks when i’m finished.
No, no, no.
If you don’t understand how malloc() and free() work, you should learn
that first. It can be VERY hard to track down and fix memory leaks later.
malloc() is so fundamental to C programming, you either have to learn it
first or not use C. Those are basically your options.
(For what it’s worth, I’ve been saying for years that all programming
job interviews–for C, Basic, Perl, anything–should start with the
question: “what is a pointer?” and if the person can’t answer, that’s
the end of the interview. As strange as that sounds, companies that try
this have told me that more than half of their entry-level candidates
fail here, even for jobs that would explicitly involve C programming. I
think it’s worth knowing what one is, even if you only use scripting
languages. It separates the men from the boys, so to speak.)
code i can peek n poke let me know.
Irony noted without further comment.
–ryan.