Re: Newbie Coding: two bufs in sprintf

From: Chris Grantham (casper@OPTIMA.MME.WSU.EDU)
Date: 09/27/97


Aaron Miller wrote:

>   sprintf(buf, "Text: %d", buf, GET_TEXT(ch));
>

I can guaruntee you that no such code exists in this format.

sprintf(buf,"%sText: %s\r\n", buf, GET_TEXT(ch));
maybe.


this is used as a kind of strcat() using sprintf. Read back and see if
buf isn't used before that.

> What is the second buf? It was not being used as a variable to print..
>
> Thanks.
>

Chris


     +------------------------------------------------------------+
     | 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/08/00 PST