Re: Re[2]: page_string()

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 09/30/97

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  -   | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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