How to append strings using sprintf ?

Posted by rejinacm on Stack Overflow See other posts from Stack Overflow or by rejinacm
Published on 2010-04-20T10:36:55Z Indexed on 2010/04/20 10:43 UTC
Read the original article Hit count: 384

Filed under:
|
|

Hey everybody,

Thank you all before I start.

I am facing a serious issue with sprintf.

suppose my code snippet is :

sprintf(Buffer,"Hello World");
sprintf(Buffer,"Good Morning");
sprintf(Buffer,"Good Afternoon");
.
.
.

Some hundred sprints....

If i do like this, its getting overwritten.

How can I avoid overwritting using sprintf. If i give a printf at the end i want to see all the lines.

How to xchieve this.

© Stack Overflow or respective owner

Related posts about sprintf

Related posts about appending