c - static function declaration inside a block -
A said
Functions within block can not be declared stable . If applied to <<>
">
static function, this means that the Internal connection that is, it can only be accessed within this file. In other words it has file-scope , whether you have the function inside any other function or outside of all of them Declare it, even if it is applicable.
Now, if you have meaning the function declaration inside any other block / function , you are trying to restrict the scope of the function to that particular block / function, which goes against the rules of the language which is < Code> static functions, even if the location of their declaration has a file-scope.
And therefore, the standard may be prevent this type of announcement. / P>
PS : footnote
30 in the latest C11 standard states
6.2.3 -
Function In the announcement the storage-class specification can be stable ; only then the file radius;
Comments
Post a Comment