<?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>LPCXpresso IDEのトピックNULL Pointer</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576192#M22646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lmoreira on Wed Mar 30 02:27:34 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have defined a type of variable using typedef called MultiBuffer, then I created an array of MultiBuffers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a function that returns a pointer to one of the positions of the array, i.e. a MultiBuffer, when there are no more Multibuffer available for use I would like to return a NULL pointer to signal that there are no more pointers available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I used this on Pelles C it worked fine but in LPCXpresso it says it is not defined. I get that, but is there a way of doing the same thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can get around this by returning a flag instead that can be just an int but that will make the function a bit messier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Luis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:34:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:34:48Z</dc:date>
    <item>
      <title>NULL Pointer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576192#M22646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lmoreira on Wed Mar 30 02:27:34 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have defined a type of variable using typedef called MultiBuffer, then I created an array of MultiBuffers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a function that returns a pointer to one of the positions of the array, i.e. a MultiBuffer, when there are no more Multibuffer available for use I would like to return a NULL pointer to signal that there are no more pointers available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I used this on Pelles C it worked fine but in LPCXpresso it says it is not defined. I get that, but is there a way of doing the same thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can get around this by returning a flag instead that can be just an int but that will make the function a bit messier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Luis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:34:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576192#M22646</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Pointer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576193#M22647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Mar 30 02:59:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
[LEFT][COLOR=blue]/* NULL pointer */[/COLOR]
[COLOR=blue]#ifndef NULL[/COLOR]
[COLOR=blue]#define NULL ((void*) 0)[/COLOR][/LEFT]
[COLOR=blue]#endif[/COLOR]
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576193#M22647</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Pointer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576194#M22648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lmoreira on Wed Mar 30 06:59:02 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Zero,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That works very well, but I don't understand why... The void* is defining a void pointer but what is the "0" for?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a look around for info about this but can not find anything that really resembles the way you are using it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Luis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576194#M22648</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Pointer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576195#M22649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Mar 30 07:15:31 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You're kidding me :):)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'0' is where this pointer points to. You asked for a Null pointer = pointer, which is pointing to '0'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://en.wikipedia.org/wiki/Pointer_(computing)#Null_pointer&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/NULL-Pointer/m-p/576195#M22649</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:34:50Z</dc:date>
    </item>
  </channel>
</rss>

