<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>ColdFire/68K Microcontrollers and Processorsのトピックstatic functions: what this means?</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/static-functions-what-this-means/m-p/139067#M2125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i've seen in many examples that many functions are declared as "static", for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static void MyFunc() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone explain me what this keyword means? I am not able to find information about it on codewarrior help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Erik Dattilo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 22:07:47 GMT</pubDate>
    <dc:creator>E_Dattilo</dc:creator>
    <dc:date>2006-12-05T22:07:47Z</dc:date>
    <item>
      <title>static functions: what this means?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/static-functions-what-this-means/m-p/139067#M2125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i've seen in many examples that many functions are declared as "static", for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static void MyFunc() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone explain me what this keyword means? I am not able to find information about it on codewarrior help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Erik Dattilo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 22:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/static-functions-what-this-means/m-p/139067#M2125</guid>
      <dc:creator>E_Dattilo</dc:creator>
      <dc:date>2006-12-05T22:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: static functions: what this means?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/static-functions-what-this-means/m-p/139068#M2126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Erik&lt;BR /&gt;&lt;BR /&gt;It's a standard keyword in ANSI C.&lt;BR /&gt;&lt;BR /&gt;Used in the context you quote, it means that the function is private to the file which contains it. It you tried to call it from another file, you would get a link error.&lt;BR /&gt;&lt;BR /&gt;It would even be possible (although poor style) to have two functions with the same name in different files, provided that both were declared as static.&lt;BR /&gt;&lt;BR /&gt;Using 'static' for private routines is good programming practice because it helps to keep your code modular.&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 00:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/static-functions-what-this-means/m-p/139068#M2126</guid>
      <dc:creator>SimonMarsden_de</dc:creator>
      <dc:date>2006-12-06T00:29:48Z</dc:date>
    </item>
  </channel>
</rss>

