Quote:
Originally Posted by Abel
Problem solved. Turns out I was expecting malloc to not return junk.
|
C is a language written to be efficient. If you
might not require it to do something it won't. So malloc returns a chunk of memory; if you, for some reason, need it to be filled with zeros it's your responsibility to do so.
This applies to all the C parts of Objective C.