Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!rsiatl!stan From: stan@Dixie.Com (Stan Brown) Newsgroups: comp.lang.c Subject: External Functions Keywords: External Message-ID: <8146@rsiatl.Dixie.Com> Date: 15 Mar 91 00:25:23 GMT Organization: Dixie Communications Services Lines: 55 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"