<?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[Anfängerfrage]]></title><description><![CDATA[<p>Was bedeuten <strong>ganz genau</strong> folgende Zeilen?</p>
<p>1. ptrs[anzahl]=(char*)malloc(sizeof(char)*(strlen(zeile)+1));</p>
<p>2. ptrs[anzahl]=NULL;</p>
<p>3. *p=(char**)realloc(*p,sizeof(char*)*(*maxwords));</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/198249/anfängerfrage</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 01:21:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/198249.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Nov 2007 21:12:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfängerfrage on Mon, 19 Nov 2007 21:12:51 GMT]]></title><description><![CDATA[<p>Was bedeuten <strong>ganz genau</strong> folgende Zeilen?</p>
<p>1. ptrs[anzahl]=(char*)malloc(sizeof(char)*(strlen(zeile)+1));</p>
<p>2. ptrs[anzahl]=NULL;</p>
<p>3. *p=(char**)realloc(*p,sizeof(char*)*(*maxwords));</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1406228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1406228</guid><dc:creator><![CDATA[matic]]></dc:creator><pubDate>Mon, 19 Nov 2007 21:12:51 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Tue, 20 Nov 2007 06:59:53 GMT]]></title><description><![CDATA[<ol>
<li>das 'anzahl'te Element von 'ptrs' wird mit dem Rückgabewert des malloc()-Aufrufs gefüllt (malloc() reserviert die angeforderte Menge an Speicher und liefert einen void* darauf zurück)</li>
<li>das Element wird mit dem NULL-Zeiger (quasi eine Kennung für &quot;zeigt nirgendwo hin) gefüllt</li>
<li>die Variable hinter dem Zeiger 'p' wird mit dem Rückgabewert von realloc() gefüllt (realloc() vergrößert/verkleinert den Bereich, auf den der übergebene Pointer zeigt, auf die angeforderte neue Größe)</li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/1406321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1406321</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 20 Nov 2007 06:59:53 GMT</pubDate></item></channel></rss>