Which is the best way...

From: Chuck Carson (ccarson@phi.org)
Date: 08/16/99


When you are adding to a buffer before sending it to the
character, which is the more suitable method?

1)

sprintf (buf + strlen(buf), "blah.....");

or 2)

sprintf(buf, "%sblah......", buf);

Or do these two end up the same at the binary level
anyway?

Thanks,
Chuck


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



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