Quote:
Originally Posted by Mr Jack
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.
|
Adding: if you've found that you do indeed need it zero-filled, use calloc() instead of malloc(), as you may already know.