On Wed, 31 Jul 1996, Eric L. Helvey wrote: > Try adding: > sprintf(buf, ""); Actually that would be adding a HUGE overhead for a simple procedure. By using sprintf you have to do all the function call crap, plus put it through a bulky and slow function. You can just use: *buf = 0; or *buf = '\0'; And you just use an instruction or two rather than a while function call/return. Steve quickey@cyberverse.com +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST