Xref: utzoo comp.lang.c:40405 comp.lang.c++:14345 Newsgroups: comp.lang.c,comp.lang.c++ Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!raven.alaska.edu!acad3.alaska.edu!fxsdb From: fxsdb@acad3.alaska.edu Subject: Re: Prototypes local or global opinions wanted Message-ID: <1991Jun24.132406.1@acad3.alaska.edu> Lines: 17 Sender: news@raven.alaska.edu (USENET News System) Nntp-Posting-Host: acad3.alaska.edu Organization: University of Alaska Fairbanks References: <1991Jun20.202241.7531@msuinfo.cl.msu.edu> <6592@trantor.harris-atd.com> Date: Mon, 24 Jun 1991 17:24:06 GMT In article <6592@trantor.harris-atd.com>, mvm@caesun6.harris-atd.com (Matt Mahoney) writes: > In article <1991Jun20.202241.7531@msuinfo.cl.msu.edu> > draper@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@epg.harris.com > #include -Scott (fxsdb@acad3.alaska.edu)