From: Eric Buckley <Eric.NoSpam.Buckley@edwardjones.com>
Subject: Re: What do you look for in C/C++ source? tm_year?
Date: 1997/09/02 [thread overview]
Message-ID: <340C7CC6.3402@edwardjones.com> (raw)
In-Reply-To: 340C34A2.FD0EE69F@bellsouth.net.no_spam
David Means wrote:
>
> If you're greping through 1000's of lines of ( C/C++ ) code for date related
> bugs, what do you look for? My first assumption is to find tm_year.
>
> What other stuff do you look for?
time_t, time.h, date, dt, 19%02d, 29, 28 (leap year), etc.
We also grepped for yr and got back a hit on every single source file
(copyright). Oops.
I have to agree with others who have stressed that the only way to find
all the date references is manual inspection of the code. There are just
too many ways to do things in C that are not obvious to an automatic
tool.
________________________
Eric Buckley
Comsys Millennium Services
eMail: remove NoSpam from above
Standard disclaimer - I speak for myself and nobody else.
next prev parent reply other threads:[~1997-09-02 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-02 4:00 What do you look for in C/C++ source? tm_year? David Means
1997-09-02 4:00 ` Eric Buckley [this message]
1997-09-03 4:00 ` John A. Kroll
1997-09-04 4:00 ` Arne Vajh�j
[not found] ` <34101ba1.2323741@news.gate.net>
1997-09-05 4:00 ` Chris Waters
[not found] <340C34B7.1BE36F49@bellsouth.net.no_spam>
[not found] ` <340CAC2A.167E@stl.dec.com>
1997-09-03 4:00 ` Kaz Kylheku
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox