C header file , static and external

What Belongs in a C .h Header File?


[url]http://embeddedgurus.com/barr-code/2010/11/what-belongs-in-a-c-h-header-file/

[/url]

static:

external static variable and external static function:

the static declaration, applied to an external variable or function, limits the scope of that object to the rest of the source file being compiled.---visibility

internal static variable:

are local to a particular function just as automatic variable are,but unlike automatics, they remain in existence rather than coming and going each time the function is activated. this that internal static variables provide private ,permanent storage within a single function.

猜你喜欢

转载自wwwjjq.iteye.com/blog/1595202
今日推荐