C++ definition of NULL
Jason Merrill
jason@cygnus.com
Tue Mar 2 21:03:00 GMT 1999
>>>>> Chad Gatesman <chadg@redrose.net> writes:
> I am currently porting a very large library that depends on the passing
> of NULL into parameters declared as long int.
> egcs appears to define NULL as __null which is a builtin symbol that
> treats NULL as `{unknown type} *'. Therefore, I cannot pass in NULL to
> a long int parameter without casting it.
Why would you want to? Conceptually, NULL is a pointer value.
Jason
More information about the Gcc
mailing list