is (int (*)())NULL legal when NULL is (void *)0?
Doug Gwyn
gwyn at smoke.brl.mil
Sun Nov 18 08:04:54 AEST 1990
In article <27780 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:
>This would make it difficult to pass a `nil pointer to function of no
>arguments returning int' to a function for which no prototype can be
>provided.
But not impossible, as a suitable pointer variable initialized to a null
pointer (trivially accomplished) could be used. You could even define
it to be const-qualified and hope the compiler is good at optimizations.
More information about the Comp.lang.c
mailing list