Re: Newbie Coding: two bufs in sprintf Sep 27, 97 09:41:46 pm

From: Aaron Miller (Tarus50@CONCENTRIC.NET)
Date: 09/27/97


Ahh sorry. I double checked it. There was an %s before the whole
thing.. that actually explains alot. Thanks.
>
> >   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 |
>      +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | 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