<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Problem in getting all Section names of Elf File using sprintf()' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Problem in getting all Section names of Elf File using sprintf()' posted on the 'C/C++ on Linux/Unix' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 16:15:40 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 16:15:40 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Problem in getting all Section names of Elf File using sprintf()</title>
      <link>http://www.programmersheaven.com/mb/ConLunix/431176/431176/problem-in-getting-all-section-names-of-elf-file-using-sprintf/</link>
      <description>plz help m only getting one section name from the below code using sprintf&lt;br /&gt;
i am working on qt creator ..plz help &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;

QString set;
char xyz[399];
scn = 0 ;
while (( scn = elf_nextscn(e , scn ))!=0)
    {

    if(gelf_getshdr ( scn , &amp;amp;shdr )!=&amp;amp;shdr)
    {
        set="error";

    }


        else if((name = elf_strptr(e , shstrndx , shdr.sh_name))==0)
        {
       

        set="error";
    }
   

sprintf (xyz, " Section %-4.4jd %s \n\n" , ( uintmax_t ) elf_ndxscn(scn), name );

set=xyz;
}

    emit button3Pushed(set);

&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ConLunix/431176/431176/problem-in-getting-all-section-names-of-elf-file-using-sprintf/</guid>
      <pubDate>Mon, 04 Feb 2013 00:47:20 -0700</pubDate>
      <category>C/C++ on Linux/Unix</category>
    </item>
  </channel>
</rss>