Russell Nelson wrote:

nobo...@web.de writes:
> But there must be a reason why the NULL macro is expended to 0 and i would 
like to know why ;-)

Null is *always*  #define NULL 0  .

Even if there was a good reason to change it, there's way too much
code that does this kind of thing:

 foo = malloc(10);
 if (!foo) exit(1);

Actually, it should be defined more like

#defined NULL ((void *) 0)

I see no difficulties with the MSP430. The registers extend down to zero, but you would never want to use a pointer to those anyway. In practice a pointer would never point there.

Regards,
Steve


Reply via email to