<?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>LPC Microcontrollers中的主题 Re: Redlib sscanf %hhu</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Redlib-sscanf-hhu/m-p/1020368#M39877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Redlib is c90 with a couple of minor c99 extensions. I think %hhu/%c is c99 and not supported. See&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389152"&gt;https://community.nxp.com/thread/389152&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2020 11:13:12 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2020-03-26T11:13:12Z</dc:date>
    <item>
      <title>Redlib sscanf %hhu</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Redlib-sscanf-hhu/m-p/1020367#M39876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a few files that are common to different microcontrollers and I noticed that sscanf %hhu seems not to work with the Redlib on a LPC54016 C project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is more less a snippet of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned char com_RXBuf[576];&lt;BR /&gt;unsigned char RegMode;&lt;BR /&gt;strcpy(com_RXBuf,"+CEREG: 0,5");&lt;BR /&gt;if (sscanf(com_RXBuf,"%*s %*u,%hhu",&amp;amp;RegMode)&amp;lt;1){&lt;BR /&gt;&amp;nbsp; RegMode = 4;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can change the %hhu to %u but then I would have to use a #ifdef just for the LPC54016 in 7 places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is %hhu supported or is there a define that makes it supported.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 10:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Redlib-sscanf-hhu/m-p/1020367#M39876</guid>
      <dc:creator>kiryat8</dc:creator>
      <dc:date>2020-03-26T10:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Redlib sscanf %hhu</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Redlib-sscanf-hhu/m-p/1020368#M39877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Redlib is c90 with a couple of minor c99 extensions. I think %hhu/%c is c99 and not supported. See&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389152"&gt;https://community.nxp.com/thread/389152&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 11:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Redlib-sscanf-hhu/m-p/1020368#M39877</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-03-26T11:13:12Z</dc:date>
    </item>
  </channel>
</rss>

