Prototypes local or global opinions wanted
fxsdb at acad3.alaska.edu
fxsdb at acad3.alaska.edu
Tue Jun 25 03:24:06 AEST 1991
In article <6592 at trantor.harris-atd.com>, mvm at caesun6.harris-atd.com (Matt Mahoney) writes:
> In article <1991Jun20.202241.7531 at msuinfo.cl.msu.edu>
> draper at buster.cps.msu.edu (Patrick J Draper) writes:
>
>>I'm interested in what others think of the practice of declaring
>>function prototypes locally within a procedure.
>
> Functions are always global, so their prototypes should be global too.
>
Functions can be declared locally with local prototypes which was, I believe,
the focus of the question. I much prefer global functions, as this encourages
writing general functions which are reused throughout the code, and can easily
be #included.
> --------------------------------
> Matt Mahoney, mvm at epg.harris.com
> #include <disclaimer.h>
-Scott (fxsdb at acad3.alaska.edu)
More information about the Comp.lang.c
mailing list