This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Daylight Savings Time Madness


2009/4/7 Stefan Raspl <raspl@linux.vnet.ibm.com>:
> void process(const char *str) {
> Âstruct tm tm, *p_tm;
> Âchar buf[255];
> Âtime_t t;
>
> Âprintf("starting out with  Â: %s\n", str);
> Âstrptime(str, "%Y-%m-%d %H:%M:%S", &tm);
This leaves tm.tm_isdst uninitialized. The sleep(1); probably just
changes what data is on the stack.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]