Re:Calloc or Malloc? Any thoughts?
by akv on Wednesday August 13, 2008 @11:50AM
(#275076)
neither.. try using a language does dynamic memory allocation and garbage collection... it would save you a lot of headache...
[ Parent
| on HN ]
...unless you're writing code for an embedded system which has (say) 16K of RAM and a 1MHz processor, in which case that will cause you more problems than it solves.
But what about when you are adding features or fixing bugs in the gigantic base of code written in C?
Or what if you consider C your lingua-franca and find it no less difficult to write a throw away app in C over other languages.
Or if you have to interface very closely to your operating system without writing hairy wrapperes.
Or, or, or ...