<?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 Re: Convert an integer to a string in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-an-integer-to-a-string/m-p/3269615#M889306</link>
    <description>sprintf&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Thu, 06 May 2004 09:23:30 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2004-05-06T09:23:30Z</dc:date>
    <item>
      <title>Convert an integer to a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-an-integer-to-a-string/m-p/3269614#M889305</link>
      <description>Hi&lt;BR /&gt;     Is there any easy way to convert an integer value to a string in C under Unix .&lt;BR /&gt;&lt;BR /&gt;Ex &lt;BR /&gt;&lt;BR /&gt;    int number=123;&lt;BR /&gt;     char strnum[4];&lt;BR /&gt;    strcpy(strnum,to_string(number));&lt;BR /&gt;&lt;BR /&gt;where to_string will have to give me the integer to string .</description>
      <pubDate>Thu, 06 May 2004 09:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-an-integer-to-a-string/m-p/3269614#M889305</guid>
      <dc:creator>Sathish C</dc:creator>
      <dc:date>2004-05-06T09:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert an integer to a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-an-integer-to-a-string/m-p/3269615#M889306</link>
      <description>sprintf&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 06 May 2004 09:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-an-integer-to-a-string/m-p/3269615#M889306</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-05-06T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert an integer to a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-an-integer-to-a-string/m-p/3269616#M889307</link>
      <description>int number = 123;&lt;BR /&gt;char strnum[16];&lt;BR /&gt;(void) sprintf(strnum,"%d",number);&lt;BR /&gt;&lt;BR /&gt;/* You can also use a format specifier to &lt;BR /&gt;   produce a fixed format; it's always a good idea to oversize the destination string because this is C and if your put 1,000,000 into a 4 character string, sprintf will dutifully carry out your commands and corrupt surrounding data */&lt;BR /&gt;&lt;BR /&gt;/* This will produce a zero-padded 6 character output 8/&lt;BR /&gt;(void) sprintf(strnum,"%06d",number);&lt;BR /&gt;(void) printf("My number is %s\n",strnum);&lt;BR /&gt;</description>
      <pubDate>Thu, 06 May 2004 09:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-an-integer-to-a-string/m-p/3269616#M889307</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-05-06T09:32:59Z</dc:date>
    </item>
  </channel>
</rss>

