extern question

Doug Gwyn gwyn at brl-smoke.ARPA
Sat Jul 2 04:32:48 AEST 1988


In article <4182 at pasteur.Berkeley.Edu> faustus at ic.Berkeley.EDU (Wayne A. Christopher) writes:
>Is the following acceptable C code:

No.

>From an aesthetic viewpoint, I like to use extern anywhere I declare
>something but don't define it.  I think writing
>	int foo();
>for static functions is not as clear.

What you should have written was

	static int foo();

Aesthetics and proper use of the language have no necessary connection.



More information about the Comp.lang.c mailing list