On Sun, Mar 14, 1999 at 06:08:49PM +0000, James wrote:
>
> oh, what's the ANSI-C way to do function prototypes? i did a C exam and
> did them like this:
>
> int foo (char *bar, int baz);
>
> but aparrently it should have just been:
>
> int foo (char *, int);
>
The two are effectively equivalent. The compiler does check the number and
type of arguments but the names are just there for the benefit of the human
reader. (there isnt an Ansi-C way of doing function prototypes, doing them is
Ansi as opposed to pre-ansi c where they were not used)
C.
--
Colin Campbell <[EMAIL PROTECTED]>
--Smart sig wanted. No hawkers