<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>sscanf() string + int</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87213/sscanf-string-int</link><description>Hello, 
 I am trying to use sscanf() to format an input string into an integer, followed by a string, followed by an integer. For example: 
 int main() { #define FORMAT_STR &amp;quot;RESPONSE: %u , %[^,] , %u &amp;quot; 
 char *p_input_str = &amp;quot;RESPONSE: 27, \&amp;quot; open \&amp;quot; </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Apr 2022 14:58:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87213/sscanf-string-int" /><item><title>RE: sscanf() string + int</title><link>https://devzone.nordicsemi.com/thread/364519?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 14:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e900356d-5deb-4531-9c54-f04bd414206f</guid><dc:creator>SpacemanSpiff</dc:creator><description>&lt;p&gt;Sure enough, that did it.&amp;nbsp; I am using the nRF5 SDK, and in case it helps anyone else, I was able to fix this by enabling &amp;quot;Scanf Classes Supported&amp;quot; in Project Options -&amp;gt; Code -&amp;gt; Printf/Scanf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sscanf() string + int</title><link>https://devzone.nordicsemi.com/thread/364516?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 14:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae315ef-e69f-436e-bfde-2c15e65893aa</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the nRF5 SDK or the nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;When using the nRF Connect SDK, your code worked as expected when I enabled CONFIG_NEWLIB_LIBC.&lt;/p&gt;
&lt;p&gt;I have not tested your code with the nRF5 SDK, but it looks like the circumflex is supported there as well: &lt;a href="https://studio.segger.com/index.htm?https://studio.segger.com/scanf.htm"&gt;https://studio.segger.com/index.htm?https://studio.segger.com/scanf.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>