Re: Pointers

From: Tony Robbins (robbinsw@ucs.orst.edu)
Date: 11/12/99


----- Original Message -----
From: Chris Gilbert <chris@buzzbee.freeserve.co.uk>
To: <CIRCLE@post.queensu.ca>
Sent: Friday, November 12, 1999 3:09 AM
Subject: Re: Pointers


Zeavon Calatin wrote:
>
> > This is probably a stupid thing to be asking, but here's my
> > question. Does
> > it matter if when you define a pointer if you set it as NULL
> > or not? i.e.
> > is:
>
> It's like wearing your seatbelt... So long as you don't get in a wreck,
it's
> safe to not wear one.
>
> Basically, NOT explicity setting pointers to NULL is just asking for
> trouble.

To take the question a little further, would there be a problem doing the
following?

int *pointer;
CREATE(pointer, int, x);

vs.

int *pointer = NULL;
CREATE(pointer, int, x);

Thanks,
-k.
allanthya.org 4000


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST