Re: bug..?

From: David Taylor (
Date: 04/09/99

On Fri, 9 Apr 1999, Nocturnal Occulto wrote:

> Sorry for the wierd questions but I cant really understand this..
> I thought a pointer contained a integer refering to what it is pointing on,
> when u check the pointer for = NULL it went to the memory area pointed to

No.. You check 'if (pointer)' which checks if the value of the pointer is
or is not null.

If you clear the mob, the pointer would still point to memory, but the
memory pointed to be would be null, the check for that would be

if (*pointer)

Which dereferences the pointer, and checks the value pointed to by

> and checked if that area was NULL, so If the area is a mob and I clear the
> mob wouldnt that area be NULL?
> Hope Im making sence :)
> Noc
> --

David Taylor
ICQ:    268004
[Remove .spam from e-mail to reply]

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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