<?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>LPCXpresso IDEのトピックRe: How to create string</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573361#M21435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cfb on Sat May 25 18:14:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;Is there a way to join 2 strings? For example:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - strcat. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer to the classic book "The C Programming Language" by Kernighan and Ritchie if the libraries you are using do not include basic string manipulation functions like this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:24:52 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:24:52Z</dc:date>
    <item>
      <title>How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573351#M21425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Sat May 25 07:38:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone please advise on how to create a string in LPCXPRESSO? I measures the temperature using a temperature sensor and I would like to insert this value into the text which appears on the display. How do I do that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573351#M21425</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573352#M21426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat May 25 07:50:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;... I would like to insert this value into the text which appears on the display.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are we talking about IDE console?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573352#M21426</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573353#M21427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Sat May 25 07:55:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, a string, such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have value of temperature&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
uint8_t t = 23;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I would like to create this string that I save to a variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Temperature is 23 degrees"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this text I can send to LCD display (2x 16 chars). I know that in the classical C, the function uses sprinf.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573353#M21427</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573354#M21428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat May 25 08:13:16 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest to use the classical 'sprintf'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573354#M21428</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573355#M21429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Sat May 25 08:59:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the only option?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573355#M21429</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573356#M21430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Sat May 25 09:31:23 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to join 2 strings? For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
char str1[3] = 'XYZ';
char str2[5] = 'test1';

char str[8] = str1 + str2;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573356#M21430</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573357#M21431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat May 25 09:31:47 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;This is the only option?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, there's also itoa.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573357#M21431</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573358#M21432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat May 25 09:40:44 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;Is there a way to join 2 strings? &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, 'sprintf'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573358#M21432</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573359#M21433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Sat May 25 11:11:53 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Really? There is no other option? I know functions itoa / uitoa, but how do I join multiple variables of type 'char'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sprintf is crazy function that inflates the code of approx. 11 kilobytes :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573359#M21433</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573360#M21434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat May 25 11:43:50 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;Really? There is no other option? I know functions itoa / uitoa, but how do I join multiple variables of type 'char'?:(&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That are simple bytes, you can use memcopy or, if you are worried about code size, just write your own loop to add this bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;sprintf is crazy function that inflates the code of approx. 11 kilobytes :(&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you should read &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.support.code-red-tech.com/CodeRedWiki/UsingPrintf?highlight=%28CR\_INTEGER%29&lt;/A&gt;&lt;SPAN&gt; to reduce that size.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573360#M21434</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573361#M21435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cfb on Sat May 25 18:14:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;Is there a way to join 2 strings? For example:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - strcat. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer to the classic book "The C Programming Language" by Kernighan and Ritchie if the libraries you are using do not include basic string manipulation functions like this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-create-string/m-p/573361#M21435</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:24:52Z</dc:date>
    </item>
  </channel>
</rss>

