Re: Get local date / hour



Paul Davis wrote:

just a quick heads up: the memset is unnecessary and strftime(3) is more
portable.

Hey Paul,

Different strokes, ok? I've been writing "C" programs for over 20 years and old habits die hard. I initialize every variable I declare inside a function (even if that variable is NOT on the stack) whether it needs it or not. And, since strftime(3) uses the same structure (struct tm) that I did to create my string, what makes it "more portable"?

Bob
begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]