ANSI C prototypes
Ronald BODKIN
utility at quiche.cs.mcgill.ca
Sat Nov 24 09:30:46 AEST 1990
In article <1906 at necisa.ho.necisa.oz> boyd at necisa.ho.necisa.oz (Boyd Roberts) writes:
>Right on! The function prototypes are just stupid. I shouldn't have to go:
> extern gore *good(const char *vomit);
>to get the functionality of type checking of function arguments.
>The compiler and loader should do it.
However, one prototype will allow you to automatically coerce
things like ints to longs/floats/doubles or "near" pointers to "far"
pointers, etc. Also, it is much faster to catch a prototype problem
before linking a large application.
Ron
More information about the Comp.lang.c
mailing list