[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Programming style



Vincent Rivière <vincent.riviere@freesbee.fr> writes:

> Static variables defined inside functions have an additional, less
> known feature. They are initialized on the first function call. So at
> the start of any function containing initialized static variables,
> there is a hidden code like this:

Static variables at block scope work exactly like static variables at
file scope except for visibility.  There is no such hidden code.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."