On Sun, Jul 01, 2007 at 09:42:49PM -0400, Josef Sipek wrote:
It might have even been me who said this - but about global functions.
For global functions, prototypes in header files allow gcc to check
whether the prototype matches the actual function. With a prototype
in the C file of the caller that's not possible, and if they are
different it can result in nasty runtime errors.
For static functions that's not an issue since gcc sees both the
prototype and the actual function.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-