[Discuss] Casting the return value of malloc bad?

Daniel M. German dmgerman at uvic.ca
Sun Jul 16 18:29:34 PDT 2006


 Paul Nienaber twisted the bytes to say:

 Paul> Writing good (AND easy to maintain AND elegant) code that happens to use
 Paul> dynamic memory allocation isn't exactly as "simple" as you may like to

I agree.

 Paul> make it seem.  If in doubt, post some of your C code.  I'll be glad to
 Paul> show you what you, too, did wrong.

Good programmers are usually proud of their code. This does not mean
it is perfect.




--
Daniel M. German                  "Do not confuse luck with skill.
                                   "
                                   The Replacement Killers"
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

 


More information about the Discuss mailing list