Re: sprintf

From: Chris Kehler (cbkehler@rarloa-4.pr.mcs.net)
Date: 12/05/98


Actually, I think it is because some compilers like Borland erase buf
before printing into them, so the first sprintf causes you to lose
whatever was in buf previously.  I could be wrong...

On Sat, 5 Dec 1998, I Chose No Name wrote:

> Okay, I was just wondering what the difference is between these two lines:
> ..
> sprintf(buf, "%sHello", buf);
> sprintf(buf + strlen(buf), "Hello");
> ..
> Thanks :)
>


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST