This one time, at band camp, Benno wrote:
>On Mon Jun 21, 2004 at 14:28:15 +1000, Rajnish Tiwari wrote:
>>int foo()
>>{
>> char* bar;
>>
>>
>>};
>Anyway, unitialised means undefined. If you want it to be zero you
>need
>
>char *bar = NULL;
you can add -Wall to the gcc command line and it'll let you know if you're
using an uninitialised variable:
willow% gcc -Wall -Werror -c foo.c
foo.c: In function `foo':
foo.c:3: warning: unused variable `bar'
and the -Werror will make that warning an error and refuse to generate
an object file or executable.
--
[EMAIL PROTECTED] http://spacepants.org/jaq.gpg
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html