summaryrefslogtreecommitdiff
path: root/devdocs/c/language%2Ffile_scope.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
committerCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
commit82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch)
tree158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/c/language%2Ffile_scope.html
parent9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff)
downloaddotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz
dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/c/language%2Ffile_scope.html')
-rw-r--r--devdocs/c/language%2Ffile_scope.html27
1 files changed, 0 insertions, 27 deletions
diff --git a/devdocs/c/language%2Ffile_scope.html b/devdocs/c/language%2Ffile_scope.html
deleted file mode 100644
index 1e49b1cf..00000000
--- a/devdocs/c/language%2Ffile_scope.html
+++ /dev/null
@@ -1,27 +0,0 @@
- <h1 id="firstHeading" class="firstHeading">File scope</h1> <p>If the declarator or type specifier that declares the identifier appears outside of any block or list of parameters, the identifier has file scope, which terminates at the end of the translation unit.</p>
-<p>So, placement of an identifier's declaration (in a declarator or type specifier) outside any block or list of parameters means that the identifier has file scope. File scope of an identifier extends from the declaration to the end of the translation unit in which the declaration appears.</p>
-<h3 id="Example"> Example</h3> <div class="t-example">
-<p>Identifiers a, b, f, and g have file scope.</p>
-<div class="c source-c"><pre data-language="c">#include &lt;stdio.h&gt;
-
-int a = 1;
-static int b = 2;
-
-void f (void) {printf("from function f()\n");}
-static void g (void) {printf("from function g()\n");}
-
-int main(void)
-{
- f();
- g();
-
- return 0;
-}
-/* end of this translation unit, end of file scope */</pre></div> <p>Possible output:</p>
-<div class="text source-text"><pre data-language="c">from function f()
-from function g()</pre></div> </div> <div class="_attribution">
- <p class="_attribution-p">
- &copy; cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br>
- <a href="https://en.cppreference.com/w/c/language/file_scope" class="_attribution-link">https://en.cppreference.com/w/c/language/file_scope</a>
- </p>
-</div>