On Sun, Jan 04, 2004 at 02:15:18AM +0700, Eugene Grosbein wrote: > Hi! > > [EMAIL PROTECTED] wrote 8 years ago in src/lib/libc/gen/syslog.c: > > p += sprintf(p, "%.15s ", ctime(&now) + 4); > > What is '+ 4' for?
quite likely it is to skip the 'day of week' field -- the ctime manpage says The ctime() function adjusts the time value for the current time zone in the same manner as localtime(), and returns a pointer to a 26-character string of the form: Thu Nov 24 18:22:48 1986\n\0 All the fields have constant width. so it makes sense cheers luigi > http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/syslog.c.diff?r1=1.2&r2=1.3 > > Eugene Grosbein > > P.S. Please CC me, I'm not in list > _______________________________________________ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "[EMAIL PROTECTED]" _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"