Re: syslog
From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 01/03/04
- Previous message: Edwin Groothuis: "Re: syslog"
- In reply to: Eugene Grosbein: "syslog"
- Next in thread: Luigi Rizzo: "Re: syslog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 3 Jan 2004 16:46:41 -0600 To: Eugene Grosbein <eugen@grosbein.pp.ru>
In the last episode (Jan 04), Eugene Grosbein said:
> ache@freebsd.org wrote 8 years ago in src/lib/libc/gen/syslog.c:
>
> p += sprintf(p, "%.15s ", ctime(&now) + 4);
>
> What is '+ 4' for?
ctime returns a date in the format:
Thu Nov 24 18:22:48 1986\n\0
The +4 skips the day name.
-- Dan Nelson dnelson@allantgroup.com _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Edwin Groothuis: "Re: syslog"
- In reply to: Eugene Grosbein: "syslog"
- Next in thread: Luigi Rizzo: "Re: syslog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|