<?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[void* array und casting]]></title><description><![CDATA[<p>hallo,</p>
<p>ich hab ein void *array, also: void **foo;<br />
ich moechte nun an einen bestimmten index (foo[a][b]) ein char schreiben (allokiert ist alles usw...)</p>
<p>foo[a][b] = somechar; geht leider nicht und mit diversen castversuchen bin ich leider gescheitert...</p>
<p>kann mir jemand sagen, wie das geht?</p>
<p>danke im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180343/void-array-und-casting</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 17:44:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180343.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 May 2007 15:17:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to void* array und casting on Tue, 01 May 2007 15:17:29 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>ich hab ein void *array, also: void **foo;<br />
ich moechte nun an einen bestimmten index (foo[a][b]) ein char schreiben (allokiert ist alles usw...)</p>
<p>foo[a][b] = somechar; geht leider nicht und mit diversen castversuchen bin ich leider gescheitert...</p>
<p>kann mir jemand sagen, wie das geht?</p>
<p>danke im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1276989</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1276989</guid><dc:creator><![CDATA[hephaistos6]]></dc:creator><pubDate>Tue, 01 May 2007 15:17:29 GMT</pubDate></item><item><title><![CDATA[Reply to void* array und casting on Tue, 01 May 2007 16:15:40 GMT]]></title><description><![CDATA[<p>hephaistos6 schrieb:</p>
<blockquote>
<p>hallo,<br />
ich hab ein void *array, also: void **foo;</p>
</blockquote>
<p>Nein, Du hast kein array! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
<p>Das geht nicht so einfach.</p>
<p>Ein T[m][n] ist <strong>kein</strong> T** somderm eim T*; Stroustrup C++PL §C7.2 f.</p>
<p>Ein int[2][2] = { 1 ,2 ,3, 4 }; sieht im Speicher auch genau so aus,</p>
<p>also einfach m*n ints hintereinander.</p>
<p>Was hast ist eine Folge von (void*) die bei foo anfängt.</p>
<p>Poste bitte mal wie Du das &quot;alles&quot; allokalisierst.</p>
<p>Grüsse</p>
<p>Gast++</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277036</guid><dc:creator><![CDATA[Gast++]]></dc:creator><pubDate>Tue, 01 May 2007 16:15:40 GMT</pubDate></item><item><title><![CDATA[Reply to void* array und casting on Tue, 01 May 2007 16:21:47 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>ich hab mittlerweile einfach auf<br />
char *foo[SOME_LENGTH]; umgestellt und nun gehts auch.</p>
<p>danke trotzdem</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277040</guid><dc:creator><![CDATA[hephaistos6]]></dc:creator><pubDate>Tue, 01 May 2007 16:21:47 GMT</pubDate></item></channel></rss>