<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Muss ich speicher wieder frei geben?]]></title><description><![CDATA[<p>hi,</p>
<p>ich benutze hier diese methode aus der netzwerkprogrammierug</p>
<pre><code class="language-cpp">char * strIp;
strIp = inet_ntoa(si_other.sin_addr);
</code></pre>
<p>Muss ich jetzt am Ende noch ein free(strIp) machen oder wir der Speicher automatich wieder frei gegeben ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/233090/muss-ich-speicher-wieder-frei-geben</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 02:58:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233090.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Jan 2009 14:12:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Muss ich speicher wieder frei geben? on Sat, 31 Jan 2009 14:12:40 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich benutze hier diese methode aus der netzwerkprogrammierug</p>
<pre><code class="language-cpp">char * strIp;
strIp = inet_ntoa(si_other.sin_addr);
</code></pre>
<p>Muss ich jetzt am Ende noch ein free(strIp) machen oder wir der Speicher automatich wieder frei gegeben ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655511</guid><dc:creator><![CDATA[Jefgo]]></dc:creator><pubDate>Sat, 31 Jan 2009 14:12:40 GMT</pubDate></item><item><title><![CDATA[Reply to Muss ich speicher wieder frei geben? on Sat, 31 Jan 2009 14:20:08 GMT]]></title><description><![CDATA[<p>Nein, musst bzw. darfst du nicht. Am besten benutzt du inet_ntoa gar nicht, sondern statt dessen <a href="https://www.opengroup.org/onlinepubs/000095399/functions/inet_ntop.html" rel="nofollow">inet_ntop</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655516</guid><dc:creator><![CDATA[fgdefdds]]></dc:creator><pubDate>Sat, 31 Jan 2009 14:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to Muss ich speicher wieder frei geben? on Sat, 31 Jan 2009 16:24:31 GMT]]></title><description><![CDATA[<p><a href="http://www.google.de/search?hl=de&amp;q=inet_ntoa&amp;meta=lr%3Dlang_de%7Clang_en" rel="nofollow">http://www.google.de/search?hl=de&amp;q=inet_ntoa&amp;meta=lr%3Dlang_de|lang_en</a><br />
=&gt;<br />
<a href="http://msdn.microsoft.com/en-us/library/ms738564(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms738564(VS.85).aspx</a></p>
<p>MSDN schrieb:</p>
<blockquote>
<p>The inet_ntoa function takes an Internet address structure specified by the in parameter and returns a NULL-terminated ASCII string that represents the address in &quot;.&quot; (dot) notation as in &quot;192.168.16.0&quot;, an example of an IPv4 address in dotted-decimal notation. The string returned by inet_ntoa resides in memory that is allocated by Windows Sockets.</p>
</blockquote>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655596</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sat, 31 Jan 2009 16:24:31 GMT</pubDate></item></channel></rss>