<?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>CodeWarrior for MCUのトピックRe: Why return function is an error in CodeWarrior?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-return-function-is-an-error-in-CodeWarrior/m-p/572374#M13219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joonsin,&lt;/P&gt;&lt;P&gt;you cannot return a value in a function which has a return type of 'void'.&lt;/P&gt;&lt;P&gt;So instead&lt;/P&gt;&lt;P&gt;void crc16(void) {&lt;/P&gt;&lt;P&gt;you have to write&lt;/P&gt;&lt;P&gt;int crc16(void) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the AS1_SencChar() after the return does not make any sense.&lt;/P&gt;&lt;P&gt;All these are basic C programming points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 09:37:16 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2016-07-14T09:37:16Z</dc:date>
    <item>
      <title>Why return function is an error in CodeWarrior?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-return-function-is-an-error-in-CodeWarrior/m-p/572373#M13218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why am i keep getting this error by using return function in my coding?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone explain and help me further on this CRC checksum coding ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your early reply is much appreciated.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 09:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-return-function-is-an-error-in-CodeWarrior/m-p/572373#M13218</guid>
      <dc:creator>joonsinchu</dc:creator>
      <dc:date>2016-07-14T09:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why return function is an error in CodeWarrior?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-return-function-is-an-error-in-CodeWarrior/m-p/572374#M13219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joonsin,&lt;/P&gt;&lt;P&gt;you cannot return a value in a function which has a return type of 'void'.&lt;/P&gt;&lt;P&gt;So instead&lt;/P&gt;&lt;P&gt;void crc16(void) {&lt;/P&gt;&lt;P&gt;you have to write&lt;/P&gt;&lt;P&gt;int crc16(void) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the AS1_SencChar() after the return does not make any sense.&lt;/P&gt;&lt;P&gt;All these are basic C programming points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 09:37:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-return-function-is-an-error-in-CodeWarrior/m-p/572374#M13219</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-07-14T09:37:16Z</dc:date>
    </item>
  </channel>
</rss>

