Re: function prototype vs function declaration



Ravishankar S said:

<snip>

It turns out that function
declarations and function prototypes are the same thing in standard C.

No, it doesn't.

It is true that all function prototypes are function declarations, but it
is not true that all function declarations are function prototypes.

<snip>

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: Headers ????
    ... Is it customary or typical to declare all function prototypes in one header ... as opposed to creating a header file for every .c file and declaring the ... If you put all of your declarations in one header, ... you will have to recompile all of the source files using them. ...
    (microsoft.public.vc.language)
  • Re: problem in modular programing
    ... it lets the compiler diagnose mismatches between ... the definitions and declarations as was said above. ... the users of that external do include the header? ... Headers include more than function prototypes. ...
    (comp.lang.c)
  • Re: function prototype vs function declaration
    ... declarations and function prototypes are the same thing in standard C. ... It is true that all function prototypes are function declarations, ...
    (comp.lang.c)
  • Re: function prototype vs function declaration
    ... It is true that all function prototypes are function declarations, ... The C standard explicitly allows the use ...
    (comp.lang.c)
  • Re: scan float pointers
    ... This is only the first error I spotted, ... Please use function prototypes, then your compiler will ... Prev by Date: ...
    (comp.lang.c)