On Tue, 30 Sep 1997, Angus Mezick wrote:
> sprintf(buf+strlen(buf), "%5d. [%5d] (%3d) %s\r\n", ++found,
> world[nr].number, world[nr].zone,
> world[nr].name);
>
>(the buf+strlen(buf) is there because I had problems with that syntax when I
>installed the buffer code. it looks a little cleaner too (maybe even faster))
This is even faster:
pos += sprintf(buf + pos, "%5d. [%5d] (%3d) %s\r\n", ++found,
world[nr].number, world[nr].zone, world[nr].name);
(Make sure 'pos' is not garbage of course.)
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| 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