<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: memcpy() in Codewarrior EWL in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/memcpy-in-Codewarrior-EWL/m-p/249909#M9630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I performed some tests on my side and checked the Ansi C rules.&lt;/P&gt;&lt;P&gt;The 3rd parameter is the "Number of bytes to copy".&lt;/P&gt;&lt;P&gt;It seems by default it's defined as char type.&lt;/P&gt;&lt;P&gt;If you're using tab defined as char type it will work fine:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char dst[10];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char src[100];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="pun"&gt;&lt;SPAN class="pln" style="color: #666600;"&gt;memcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;&amp;amp;dst[4]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;src[9]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;for your example the tab is using int type (right way).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;You must specified the size of int for instance:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memcpy &lt;SPAN style="font-size: 10pt;"&gt;(&amp;amp;dst[4], &amp;amp;src[9], 5*&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;sizeof&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(int&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memcpy &lt;SPAN style="font-size: 10pt;"&gt;(&amp;amp;dst[4], &amp;amp;src[9], 20&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Pascal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 10:06:14 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2013-05-22T10:06:14Z</dc:date>
    <item>
      <title>memcpy() in Codewarrior EWL</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/memcpy-in-Codewarrior-EWL/m-p/249908#M9629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, I have a question regaarding the standard function in cstring.h called memcpy. My issue is that this function should be of the form:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;memcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;str1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;const&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;str2&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #7f0055;"&gt;size_t&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; n&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;When I try to call it in the form:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;unsigned int dst[10];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666600;"&gt;unsigned int src[100];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pln" style="color: #666600;"&gt;memcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;&amp;amp;dst[4]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;src[9]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;it only copies 1 byte, because that is the length of "5".&amp;nbsp; I want it to copy 5 bytes. I tried casting the constant 5 to type "size_t":&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pln" style="color: #666600;"&gt;memcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;&amp;amp;dst[4]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;src[9]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; ((size_t)&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;5)&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;This also didn't work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;The way it does work, (although not the way i intended) is:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pln" style="color: #666600;"&gt;memcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;&amp;amp;dst[0]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;src[9]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; sizeof(&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;dst&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN style="color: #666600;"&gt;How do I use a integer constant or variable in the quantity of bytes field!? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN style="color: #666600;"&gt;PS: I am using a Coldfire MCF52259.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;Thank You,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;Cory&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 17:33:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/memcpy-in-Codewarrior-EWL/m-p/249908#M9629</guid>
      <dc:creator>Schwac</dc:creator>
      <dc:date>2013-05-21T17:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: memcpy() in Codewarrior EWL</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/memcpy-in-Codewarrior-EWL/m-p/249909#M9630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I performed some tests on my side and checked the Ansi C rules.&lt;/P&gt;&lt;P&gt;The 3rd parameter is the "Number of bytes to copy".&lt;/P&gt;&lt;P&gt;It seems by default it's defined as char type.&lt;/P&gt;&lt;P&gt;If you're using tab defined as char type it will work fine:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char dst[10];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char src[100];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="pun"&gt;&lt;SPAN class="pln" style="color: #666600;"&gt;memcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;&amp;amp;dst[4]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;src[9]&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #666600;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;for your example the tab is using int type (right way).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;You must specified the size of int for instance:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memcpy &lt;SPAN style="font-size: 10pt;"&gt;(&amp;amp;dst[4], &amp;amp;src[9], 5*&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;sizeof&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(int&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;STRONG style="color: #642880; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memcpy &lt;SPAN style="font-size: 10pt;"&gt;(&amp;amp;dst[4], &amp;amp;src[9], 20&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Pascal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 10:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/memcpy-in-Codewarrior-EWL/m-p/249909#M9630</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2013-05-22T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: memcpy() in Codewarrior EWL</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/memcpy-in-Codewarrior-EWL/m-p/249910#M9631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is definitely it! Using sizeof() on a data type will return the proper result. This is confusing because all of the PC based examples I was seeing used a constant in this field directly, which doesn't work. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;memcpy &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;(&amp;amp;dst[4], &amp;amp;src[9], 20&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;);&lt;/SPAN&gt; does not work for me on the coldfire or in tests I did using MinGW and G++ compiler. Thank you So Much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 00:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/memcpy-in-Codewarrior-EWL/m-p/249910#M9631</guid>
      <dc:creator>Schwac</dc:creator>
      <dc:date>2013-05-23T00:42:54Z</dc:date>
    </item>
  </channel>
</rss>

