Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!usc!apple!mauxci!problem!druid!darcy From: darcy@druid.uucp (D'Arcy J.M. Cain) Newsgroups: comp.std.c Subject: Re: Questions about mktime() - and answer Message-ID: <1991Feb15.005631.1886@druid.uucp> Date: 15 Feb 91 00:56:31 GMT References: <1991Feb8.062954.13509@druid.uucp> <1991Feb14.032409.27062@dirtydog.ima.isc.com> Organization: D'Arcy Cain Consulting, West Hill, Ontario Lines: 15 In article <1991Feb14.032409.27062@dirtydog.ima.isc.com> Karl Heuer writes: >In article <1991Feb8.062954.13509@druid.uucp> darcy@druid.uucp (D'Arcy J.M. Cain) writes: >> *tp = *localtime(&t); /* set other fields in structure */ >Sorry, this violates the Standard. "The implementation shall behave as if >no other library function calls [localtime()]." [4.12.3]. In particular, > ... >Fix: move the guts of localtime() into void _do_time(time_t, struct tm *), Ouch. anyone know where I can get a PD localtime? -- D'Arcy J.M. Cain (darcy@druid) | D'Arcy Cain Consulting | There's no government West Hill, Ontario, Canada | like no government! +1 416 281 6094 |