R
Rahul
Hi Everyone,
I have the following code,
char temp[1024];
sprintf(temp,"_%d_%d",type,value);
FileName.append(temp); //<file_name>_1_2
however, i noticed that _1_2 is appended twice and i get an output
of <file_name>_1_2_1_2 instead of just <file_name>_1_2.
Is there any side effect to the append member function call?
Thanks in advance ! ! !
I have the following code,
char temp[1024];
sprintf(temp,"_%d_%d",type,value);
FileName.append(temp); //<file_name>_1_2
however, i noticed that _1_2 is appended twice and i get an output
of <file_name>_1_2_1_2 instead of just <file_name>_1_2.
Is there any side effect to the append member function call?
Thanks in advance ! ! !