static functions

VLD/VMB gwyn at Brl-Vld.ARPA
Thu Feb 21 10:06:51 AEST 1985


static char *
func()
...

means that func() returns a value of type (char *),
and is "file-static", i.e. local to the source file
and not available for linking with references from
other files.  This nicely encapsulates the name "func"
so that it cannot conflict with the same name in other
object modules.



More information about the Comp.lang.c mailing list