Questions about mktime() - and answer
D'Arcy J.M. Cain
darcy at druid.uucp
Fri Feb 15 11:56:31 AEST 1991
In article <1991Feb14.032409.27062 at dirtydog.ima.isc.com> Karl Heuer writes:
>In article <1991Feb8.062954.13509 at druid.uucp> darcy at 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 at druid) |
D'Arcy Cain Consulting | There's no government
West Hill, Ontario, Canada | like no government!
+1 416 281 6094 |
More information about the Comp.std.c
mailing list