<?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[Struct to char]]></title><description><![CDATA[<p>hi,</p>
<p>Ich will eine struct &quot;versenden&quot; und müsste daher struct -&gt; char -&gt; struct machen.<br />
Geht das, bzw könnte mir das jemand einen tip geben?</p>
<p>gruß DonTobias</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/264877/struct-to-char</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 13:20:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/264877.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Apr 2010 08:44:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Struct to char on Wed, 14 Apr 2010 08:44:27 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>Ich will eine struct &quot;versenden&quot; und müsste daher struct -&gt; char -&gt; struct machen.<br />
Geht das, bzw könnte mir das jemand einen tip geben?</p>
<p>gruß DonTobias</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1882546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1882546</guid><dc:creator><![CDATA[DonTobias]]></dc:creator><pubDate>Wed, 14 Apr 2010 08:44:27 GMT</pubDate></item><item><title><![CDATA[Reply to Struct to char on Wed, 14 Apr 2010 08:50:39 GMT]]></title><description><![CDATA[<p>Wie sieht denn dein struct aus? Im günstigsten Fall kannst du einfach die Adresse des Objekts in einen char pointer umwandeln und die Größe per sizeof() Operator bestimmen. Ansonsten kommst du um irgendeine Art von Serialisierung wohl nicht drumrum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1882549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1882549</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Wed, 14 Apr 2010 08:50:39 GMT</pubDate></item><item><title><![CDATA[Reply to Struct to char on Wed, 14 Apr 2010 08:51:12 GMT]]></title><description><![CDATA[<p>Das Stichwort heißt (De-)Serialisierung. Du musst die einzelnen Felder der struct in einen Datenstrom überführen, diesen übertragen und beim Empfänger wieder in eine struct zurückführen.</p>
<p>Es gibt auch eine andere Vorgehensweise, das casten der struct in ein char* und wieder zurück, aber das ist nicht vom Standard abgedeckt und nicht portabel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1882551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1882551</guid><dc:creator><![CDATA[Nukularfüsiker]]></dc:creator><pubDate>Wed, 14 Apr 2010 08:51:12 GMT</pubDate></item></channel></rss>