Interpretation needed Re: function prototypes (LONG)
Kathy Harris
kathy at hpfcdc.HP.COM
Sat Jul 8 02:22:01 AEST 1989
I'm still not clear on this. Is it only the "top-level" qualifier that
is to be ignored for comparisons, or all qualifiers. For example, are
the following compatible or not:
int f(const int * p);
int f(int * p);
where the 'const' qualifier applies to the 'int' not to the 'pointer'.
If you do ignore this for comparisons, then it still makes a difference
in the composite type, because it will determine whether the following
generates a diagnostic about passing a pointer to a constant to a plain
pointer.
main() {
const int *q;
f(q);
}
Kathy Harris
Hewlett Packard Colorado Language Lab
hplabs!hpdcdb!kathy
More information about the Comp.std.c
mailing list