> #0 0x00002b603b9c96a0 in strlen () from /lib/libc.so.6
> No symbol table info available.
> #1 0x00002b603b99b4cc in vfprintf () from /lib/libc.so.6
> No symbol table info available.
> #2 0x00002b603b9a1298 in fprintf () from /lib/libc.so.6
> No symbol table info available.
> #3 0x00000000004012c2 in output_header (file=1) at wftodm.c:200
> i = 4201568
> j = 0
> now = 1154016900
Hmm, I don't see anything wrong here. The affected code is this:
time_t now = time(0);
fprintf(ofp,"%%%%Creation Date: %s", ctime(&now)); /* <- line 200 */
which looks correct. The value `1154016900' corresponds to the date
Thu Jul 27 18:15:00 2006
Does the following snippet, compiled as a small program, works for
you?
#include <stdio.h>
#include <sys/time.h>
void
main(void)
{
time_t now = 1154016900;
printf("%s", ctime(&now));
}
Werner
_______________________________________________
Cjk maillist - [email protected]
http://lists.ffii.org/mailman/listinfo/cjk