Re: Question

From: Jourge Fuzz Bush (modem-burn@geocities.com)
Date: 11/16/98


> >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.)

Just curious but I have a newbie question.
What does the \r do?
In my previous programming I just used \n for carage returns. I think it
has something to do with streaming sockets ( I think I read that ) but
I'm  not sure. Can anyone help?

        - Matt


     +------------------------------------------------------------+
     | 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