<?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>Using sscanf on nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15486/using-sscanf-on-nrf51822</link><description>I am attempting to use sscanf() on nRF51822. However the chip simply freezes when reaching that part of the code. Do I need to add anything in the toolchain to make it work?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Aug 2016 11:13:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15486/using-sscanf-on-nrf51822" /><item><title>RE: Using sscanf on nrf51822</title><link>https://devzone.nordicsemi.com/thread/59167?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 11:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b782234d-5864-48b3-81ea-de2ff6a0db83</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Just tested with this code in the uart project (examples/peripheral/uart) and it worked:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;char sentence []=&amp;quot;Rudolph is 12 years old&amp;quot;;
char str [20];
int i;

sscanf (sentence,&amp;quot;%s %*s %d&amp;quot;,str,&amp;amp;i);
printf (&amp;quot;%s -&amp;gt; %d\n&amp;quot;,str,i);

//output is: Rudolph -&amp;gt; 12
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I was using Keil. Can you give us the sscanf code that does not work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>