<?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>MQX Software SolutionsのトピックHelp with memory allocation functions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Help-with-memory-allocation-functions/m-p/218730#M5672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FILE_PTR&amp;nbsp;&amp;nbsp; fpr;&lt;BR /&gt;fpr = _mem_alloc_zero(4096);&lt;BR /&gt;fpr = fopen("c:\\LIMBIC.S19", "r");&lt;BR /&gt;fclose(fpr);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does fclose do?, does it free the mem_alloc_zero(4096) ???&amp;nbsp;&lt;/P&gt;&lt;P&gt;do I need to call&amp;nbsp; _mem_free(fpr) ???&lt;/P&gt;&lt;P&gt;do I even need to call _mem_alloc_zero to allocate memory for the file pointer ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any comments are welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 00:36:57 GMT</pubDate>
    <dc:creator>MQXuser</dc:creator>
    <dc:date>2009-09-30T00:36:57Z</dc:date>
    <item>
      <title>Help with memory allocation functions</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Help-with-memory-allocation-functions/m-p/218730#M5672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FILE_PTR&amp;nbsp;&amp;nbsp; fpr;&lt;BR /&gt;fpr = _mem_alloc_zero(4096);&lt;BR /&gt;fpr = fopen("c:\\LIMBIC.S19", "r");&lt;BR /&gt;fclose(fpr);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does fclose do?, does it free the mem_alloc_zero(4096) ???&amp;nbsp;&lt;/P&gt;&lt;P&gt;do I need to call&amp;nbsp; _mem_free(fpr) ???&lt;/P&gt;&lt;P&gt;do I even need to call _mem_alloc_zero to allocate memory for the file pointer ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any comments are welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 00:36:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Help-with-memory-allocation-functions/m-p/218730#M5672</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-09-30T00:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with memory allocation functions</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Help-with-memory-allocation-functions/m-p/218731#M5673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you don't need to call _mem_alloc_zero.&lt;/P&gt;&lt;P&gt;you don't need to call _mem_free(fpr) either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;refer to these files: io_fopen.c and io_fclose.c to understand "fopen" and "fclose"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or grab C book, read chapter about io/file etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 02:03:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Help-with-memory-allocation-functions/m-p/218731#M5673</guid>
      <dc:creator>eGuy</dc:creator>
      <dc:date>2009-10-01T02:03:43Z</dc:date>
    </item>
  </channel>
</rss>

