From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,5e0ef8d936a38c44 X-Google-Attributes: gidf7344,public X-Google-Thread: fc89c,5e0ef8d936a38c44 X-Google-Attributes: gidfc89c,public X-Google-Thread: f86b3,5e0ef8d936a38c44 X-Google-Attributes: gidf86b3,public X-Google-Thread: 1014db,5e0ef8d936a38c44 X-Google-Attributes: gid1014db,public X-Google-Thread: fc7fa,5e0ef8d936a38c44 X-Google-Attributes: gidfc7fa,public From: Eric Buckley Subject: Re: What do you look for in C/C++ source? tm_year? Date: 1997/09/02 Message-ID: <340C7CC6.3402@edwardjones.com>#1/1 X-Deja-AN: 269891882 References: <340C34A2.FD0EE69F@bellsouth.net.no_spam> Organization: Edward Jones Newsgroups: comp.software.year-2000,comp.unix.programmer,comp.os.vms,comp.sys.vms,comp.lang.c 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.