unary +
Joseph S. D. Yao
jsdy at hadron.UUCP
Thu Apr 17 15:44:56 AEST 1986
In article <951 at dataioDataio.UUCP> bright at dataio.UUCP (Walter Bright writes:
>For all of those of you out there who were confused by the two distinct
>meanings of the keyword 'static', speak up!
> 1. If outside the scope of a function, do not make the symbol global.
> 2. If inside the scope of a function, allocate storage in
> the data segment instead of on the stack.
The single meaning of static is: allocate storage in the appropriate
(text code or data) segment and make the symbol not accessible outside
this module. When used inside a function, "module" means "function";
when used outside, "module" means "file". [Maybe these are a differ-
ent two distinct meanings.]
--
Joe Yao hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}
More information about the Comp.lang.c
mailing list