AT&T C compilers

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Feb 26 11:54:23 AEST 1989


In article <569 at marob.MASA.COM> samperi at marob.MASA.COM (Dominick Samperi) writes:
>The AT&T C compiler (from System V, Release 2?) chokes on a declaration
>of the form:
>extern int bob(double (*)()) ;

Of course it does, because that's a function prototype, which was only
recently added to the C language.  AT&T UNIX C compilers up to SVR4
support a flavor of C modeled after K&R 1st Edition Appendix A, with
some common extensions (enums, struct copy, void).  I am told that the
UNIX SVR4 C compiler will conform to the (forthcoming) ANSI C standard,
which includes function prototypes.  Until then, you must leave the
argument declarations out of your function declarations.



More information about the Comp.lang.c mailing list