plz help m only getting one section name from the below code using sprintf
i am working on qt creator ..plz help
[code]
QString set;
char xyz[399];
scn = 0 ;
while (( scn = elf_nextscn(e , scn ))!=0)
{
if(gelf_getshdr ( scn , &shdr )!=&shdr)
{
set="error";
}
else if((name = elf_strptr(e , shstrndx , shdr.sh_name))==0)
{
set="error";
}
sprintf (xyz, " Section %-4.4jd %s
" , ( uintmax_t ) elf_ndxscn(scn), name );
set=xyz;
}
emit button3Pushed(set);
[/code]