Whenever you define a C function, its name is globally visible by default. You can prefix the functionname with the redundant extern keyword or leave it off, and the effect is the same. The function isvisible to anything that links with that object file. If you want to restrict access to the function, you areobliged to specify the static keyword.
function apple ()
{ /* visible everywhere */ }
extern function pear ()
{ /* visible everywhere */ }
static function turnip()
{ /* not visible outside this file */ }
i.e writing extern function apple in C is redundant.
0 comments: