Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-09-2010, 07:38 PM   #4 (permalink)
Kalimba
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,178
Default

Quote:
Originally Posted by Mr Jack View Post
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.
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
 

» Advertisements
» Online Users: 367
19 members and 348 guests
acegames, ADY, apatsufas, BdR, catedawn, georg8betx, Graham, Gurpartap Singh, iph_s, joeallenpro, john love, jorge599, kampftrinker, MarkC, RoryHarvey, sadr1an1, superg, syver
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,699
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:10 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.