<?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[Pointerdef. oder so Ähnlich??]]></title><description><![CDATA[<p>Hi ich hoffe das passt hier rein, da es eigentlich Ansi C betrifft.</p>
<p>Ich bin gerade dabei mich in einen fremden Code einzuarbeiten<br />
und da bin ich auf diese Zeile gestoßen:</p>
<pre><code class="language-cpp">volatile int iValveIn_Value; 

...

ucP__Val = (unsigned char *) &amp;i_Value
</code></pre>
<p>Was genau ist der Sinn??<br />
Heißt das jetzt, dass ucP_Val nur auf die Adresse von i_Value Zeigt??</p>
<p>Gruß<br />
IWS</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/212582/pointerdef-oder-so-ähnlich</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 20:28:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/212582.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 May 2008 06:38:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pointerdef. oder so Ähnlich?? on Thu, 08 May 2008 06:38:54 GMT]]></title><description><![CDATA[<p>Hi ich hoffe das passt hier rein, da es eigentlich Ansi C betrifft.</p>
<p>Ich bin gerade dabei mich in einen fremden Code einzuarbeiten<br />
und da bin ich auf diese Zeile gestoßen:</p>
<pre><code class="language-cpp">volatile int iValveIn_Value; 

...

ucP__Val = (unsigned char *) &amp;i_Value
</code></pre>
<p>Was genau ist der Sinn??<br />
Heißt das jetzt, dass ucP_Val nur auf die Adresse von i_Value Zeigt??</p>
<p>Gruß<br />
IWS</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505245</guid><dc:creator><![CDATA[ImmerWiederStauner]]></dc:creator><pubDate>Thu, 08 May 2008 06:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Pointerdef. oder so Ähnlich?? on Thu, 08 May 2008 06:44:26 GMT]]></title><description><![CDATA[<p>Da fehlen irgendwie Infos... Was z.B. ist i_Value? Was ist ucP__Val?<br />
Man kann nur von der Notation her auf die Typen schließen. Wenn i_Value ein int ist wird der Zeiger zu einem unsigned char* gecastet und ucP_Val bekommt diesen zugewießen. Du kannst da durch auf den Speicher von i_Value ähnlich einem unsigned char Array zugreifen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505249</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Thu, 08 May 2008 06:44:26 GMT</pubDate></item><item><title><![CDATA[Reply to Pointerdef. oder so Ähnlich?? on Thu, 08 May 2008 07:18:17 GMT]]></title><description><![CDATA[<p>Danke David, habs mir im Code nochmal angesehen,...</p>
<p>Hier nochmal die Defs.:</p>
<pre><code class="language-cpp">unsigned char  *ucP_Val;
volatile long i_Value;

ucP_Val = (unsigned char *) &amp;i_Value;
</code></pre>
<p>Ist das jetzt ne Konvertierung zu einem Char- Pointer??</p>
<p>Lieg ich richtig wenn ich sag:<br />
--&gt; (unsigned char <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="😉"
    /> //Dass der Compiler nicht meckert<br />
--&gt; **&amp;**i_Value //um ucP_Val die adresse zuzuweisen??</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505274</guid><dc:creator><![CDATA[ImmerWiederStauner]]></dc:creator><pubDate>Thu, 08 May 2008 07:18:17 GMT</pubDate></item><item><title><![CDATA[Reply to Pointerdef. oder so Ähnlich?? on Thu, 08 May 2008 07:28:06 GMT]]></title><description><![CDATA[<p>ImmerWiederStauner schrieb:</p>
<blockquote>
<p>Ist das jetzt ne Konvertierung zu einem Char- Pointer??</p>
<p>Lieg ich richtig wenn ich sag:<br />
--&gt; (unsigned char <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="😉"
    /> //Dass der Compiler nicht meckert<br />
--&gt; **&amp;**i_Value //um ucP_Val die adresse zuzuweisen??</p>
<p>Gruß</p>
</blockquote>
<p>Im Prinzip: Ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505280</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505280</guid><dc:creator><![CDATA[B.B.]]></dc:creator><pubDate>Thu, 08 May 2008 07:28:06 GMT</pubDate></item><item><title><![CDATA[Reply to Pointerdef. oder so Ähnlich?? on Thu, 08 May 2008 08:34:07 GMT]]></title><description><![CDATA[<p>Danke,...</p>
<p>Gruß<br />
IWS</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505338</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505338</guid><dc:creator><![CDATA[ImmerWiederStauner]]></dc:creator><pubDate>Thu, 08 May 2008 08:34:07 GMT</pubDate></item></channel></rss>