Re: Question

From: George (greerga@circlemud.org)
Date: 11/16/98


On Sun, 15 Nov 1998, Andrey Fidrya wrote:

>void show_obj_to_char(struct obj_data * object, struct char_data * ch,
>                        int mode)
>{
>....
>  strcat(buf, "\r\n");
>  page_string(ch->desc, buf, TRUE);
>}
>
>Is there any reason to use page_string here?
>Why can't it be something like "send_to_char(buf, ch)"?

It might have a really long description in mode 0.

>Btw, there is a bug in do_last: it adds 1 extra \r\n.
>(ctime adds \r\n and we append one more \r\n to buf, so just remove \r\n from
>sprintf):
>-  sprintf(buf, "[%5ld] [%2d %s] %-12s : %-18s : %-20s\r\n",
>+  sprintf(buf, "[%5ld] [%2d %s] %-12s : %-18s : %-20s",

ctime only adds \n. (Not that the lone \n should be there anyway.)

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- 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/15/00 PST