Newbie Coding: two bufs in sprintf

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


I was rewriting do_score in act.informational.c when I noticed something.
In all other instances of sprintf I've seen, they only had one buf and
looked like this

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

or something similar. But in do_score, they look like this

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

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

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