Hi
I have a program within which i have the following statement.
sprintf(somevar ,"%s/%s.%s",PREFIX.c _str( ),MIDDLE.c_str(
),SUFFIX.c_str( ) );
Here PREFIX, MIDDLE and SUFFIX are all const strings.
This works fine but recently after close to 1000 successful runs my
program dumped with SIGSEGV.
I did a bt on the core file at gdb prompt and found that the problem is
with c_str( )
I am using gcc 3.2.3
libstdc++.so.5
on RH linux AS 3.
Is the spriontf statement correct , or is there any better way.
thanks
Shyam