log() update

From: Will Andrews (andrews@TECHNOLOGIST.COM)
Date: 02/06/99


Hi folks. I got sick of the fact that log() does not print a year... so I
modified the utils.c function log()..:

void log(char *str) {
  time_t ct;
  char *tmstr;

        ct = time(0);
        tmstr = ctime(&ct);
        *(tmstr + strlen(tmstr) - 1) = '\0';
        fprintf(stderr, "%-24.24s :: %s\n", tmstr, str);
}

Not much different here. Just changed the asctime() call to a ctime() call,
mostly. But it helps me sort out my older logs (have some from 1997).. :P

Toodles.

--Acme, Maintenance Implementor & Demi-Coder [NIC: WA915]
The Black Dawn -- http://www.blackdawn.com/ -- telnet://blackdawn.com:4000


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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