C pointer problems in VMS.
Karl Heuer
karl at haddock.ISC.COM
Wed Mar 23 09:25:32 AEST 1988
In article <25834 at cca.CCA.COM> g-rh at CCA.CCA.COM.UUCP (Richard Harter) writes:
>>(Also, I consider it bad practice to declare a function with local scope, so
>>I'd put it outside main() anyway, even if nobody else calls it.)
>
>Consider me confused. What do you mean by declaring a function with
>local scope? Are you saying that you are a one-function per file advocate
>or that one shouldn't declare static functions?
Neither. I'm saying that I consider
main() { extern void p(); p(); }
to be inferior to
extern void p();
main() { p(); }
Like it or not, the function "p" DOES have at least file scope, so you might
as well declare it that way.
Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
More information about the Comp.lang.c
mailing list