enum function bug?
notes at hcx1.UUCP
notes at hcx1.UUCP
Tue Sep 23 03:14:47 AEST 1986
On a somewhat related matter, I noticed the following:
AT&T 5.2.2 source seems to accept the following, but Berkeley 4.2 & 4.3beta
give a warning of inconsistent usage.
struct st { int c ; } ;
int func (b);
int b;
{
}
main()
{
struct st s;
func (&s);
}
If 's' were a character array, however, AT&T would also complain.
Dave Ray -- uucp: {ucf-cs|allegra}!novavax!hrshcx!hcx1!daver
More information about the Comp.lang.c
mailing list