View Single Post
Old 2012-10-26, 22:31   #9
burrobert's Avatar
Oct 2012
Altona Victoria

22·3 Posts

Originally Posted by Dubslow View Post
It could be that a different compiler (clang?) automatically initializes all C variables to 0/NULL, as most other languages do, while gcc doesn't. (When you say command line, do you mean with gcc as opposed to clang?)
Yes that's right. It worked with both gcc and clang on my Macbook.
burrobert is offline   Reply With Quote