External Functions
Stan Brown
stan at Dixie.Com
Fri Mar 15 10:25:23 AEST 1991
I'v got a question.
Given an externaly defined function (that is in a seperate source
file) used by two different functions in one source file.
void foo();
Which of the folowing would be better & why
Choice 1
------------------------------------------------------------------
extern void foo();
void func1()
{
.
foo();
.
}
void func2()
{
.
foo();
.
}
-------------------------------------------------------------------
or
Choice 2
------------------------------------------------------------------
void func1()
{
extern void foo();
.
.
}
void func2()
{
extern void foo();
.
.
}
-------------------------------------------------------------------
--
Stan Brown P. c. Design 404-363-2303 Ataant Ga.
(emory|gatech|uunet) rsiatl!sdba!stan "vi forever"
More information about the Comp.lang.c
mailing list