C declaration styles

Stan Friesen sarima at gryphon.CTS.COM
Mon Mar 28 09:21:11 AEST 1988


In article <18359 at sci.UUCP> phil at sci.UUCP (Phil Kaufman) writes:
>      ...
>Declarations for functions are wonderful and avoid many errors but can 
>anyone tell me what the effect of the static modifier has in a function
>definition? I have often seen the following:
>       static int foofunction (int, int)

	Quite simply, it means the function is limited in scope to the
current file, it is a *private* function not visible to the rest of the
world. This is very useful for producing modular code without worrying
about name conflicts.



More information about the Comp.lang.c mailing list