<?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>how to convert  int to string</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76360/how-to-convert-int-to-string</link><description>Hello , I have a variable of type uint32_t and I wanted to convert it to type string How to do that ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 24 Oct 2021 14:21:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76360/how-to-convert-int-to-string" /><item><title>RE: how to convert  int to string</title><link>https://devzone.nordicsemi.com/thread/335584?ContentTypeID=1</link><pubDate>Sun, 24 Oct 2021 14:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a35ab1b-0989-47e0-b04d-d9a7b2af6808</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;I get a fault when I use sprintf. Am I missing a configuration setting in proj.conf?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;char *sprinted = &amp;quot;hello&amp;quot;;
int x = 28;
sprintf(sprinted, &amp;quot;%d&amp;quot;, x);
printk(&amp;quot;%s&amp;quot;, sprinted);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to convert  int to string</title><link>https://devzone.nordicsemi.com/thread/315347?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 10:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e91e56a7-1444-43f0-ad48-2200054791e1</guid><dc:creator>nikola </dc:creator><description>&lt;p&gt;I wanter to change the type of a parameter of my function&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to convert  int to string</title><link>https://devzone.nordicsemi.com/thread/315346?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 10:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000aeef2-e171-4f1f-969c-6d52fffc361b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Check the Standard C library; eg,&amp;nbsp;&lt;strong&gt;sprintf()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.cplusplus.com/reference/cstdio/sprintf/"&gt;www.cplusplus.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>