<?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 sscanf   problem when giving a string containg %   as the first  parameter. in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149405#M350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to perform the following instructions into MQX. I need to get the four ip numbers into four integers(a,b,c,d).&lt;/P&gt;&lt;P&gt;Problem is I am receiving %2E&amp;nbsp; as the&amp;nbsp; "."&amp;nbsp; and the "%" symbol is giving me a lot of trouble. I have tested those lines into a C compiler for PC&amp;nbsp; applications and it works fine but it fails in MQX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char ip[] = "192%2E168%2E0%2E120";&lt;/P&gt;&lt;P&gt;sscanf(ip, "%d%%%*[2E]%d%%%*[2E]%d%%%*[2E]%d" , &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Function Name&amp;nbsp;&amp;nbsp;&amp;nbsp; : _io_sscanf&lt;BR /&gt;* Returned Value&amp;nbsp;&amp;nbsp; : _mqx_int&lt;BR /&gt;* Comments&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; This function performs similarly to the 'C' sscanf function.&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; &lt;FONT color="#ff0000"&gt;See scanline.c for comments.&lt;/FONT&gt;&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; The function returns the number of input items converted and assigned}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do I find scanline.c file in order to see the comments?&lt;/P&gt;&lt;P&gt;I need to see what does the sscanf function can do in order to get this working.&lt;/P&gt;&lt;P&gt;Let me know if someone knows a way around this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 02:49:22 GMT</pubDate>
    <dc:creator>JaimeR</dc:creator>
    <dc:date>2009-10-27T02:49:22Z</dc:date>
    <item>
      <title>sscanf   problem when giving a string containg %   as the first  parameter.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149405#M350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to perform the following instructions into MQX. I need to get the four ip numbers into four integers(a,b,c,d).&lt;/P&gt;&lt;P&gt;Problem is I am receiving %2E&amp;nbsp; as the&amp;nbsp; "."&amp;nbsp; and the "%" symbol is giving me a lot of trouble. I have tested those lines into a C compiler for PC&amp;nbsp; applications and it works fine but it fails in MQX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char ip[] = "192%2E168%2E0%2E120";&lt;/P&gt;&lt;P&gt;sscanf(ip, "%d%%%*[2E]%d%%%*[2E]%d%%%*[2E]%d" , &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Function Name&amp;nbsp;&amp;nbsp;&amp;nbsp; : _io_sscanf&lt;BR /&gt;* Returned Value&amp;nbsp;&amp;nbsp; : _mqx_int&lt;BR /&gt;* Comments&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; This function performs similarly to the 'C' sscanf function.&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; &lt;FONT color="#ff0000"&gt;See scanline.c for comments.&lt;/FONT&gt;&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; The function returns the number of input items converted and assigned}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do I find scanline.c file in order to see the comments?&lt;/P&gt;&lt;P&gt;I need to see what does the sscanf function can do in order to get this working.&lt;/P&gt;&lt;P&gt;Let me know if someone knows a way around this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 02:49:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149405#M350</guid>
      <dc:creator>JaimeR</dc:creator>
      <dc:date>2009-10-27T02:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: sscanf   problem when giving a string containg %   as the first  parameter.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149406#M351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find the right file here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mqx/source/fio/io_scanl.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for bad comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 20:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149406#M351</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2009-10-29T20:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: sscanf   problem when giving a string containg %   as the first  parameter.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149407#M352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Do you know how can I catch a "%" symbol?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 20:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149407#M352</guid>
      <dc:creator>JaimeR</dc:creator>
      <dc:date>2009-10-29T20:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: sscanf   problem when giving a string containg %   as the first  parameter.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149408#M353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to say that, but there seems to be no support for '%' escaping.&lt;/P&gt;&lt;P&gt;Please consider input preprocessing (replace %2E with something sscanf knows).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 23:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sscanf-problem-when-giving-a-string-containg-as-the-first/m-p/149408#M353</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2009-10-29T23:10:00Z</dc:date>
    </item>
  </channel>
</rss>

