From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2689ad531d8a7dbe386d3775add27c95.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199608071203.OAA26109@inet.uni-c.dk> Date: Wed, 07 Aug 96 08:16:00 EDT From: David Wild Subject: Re: _printf_ problem I believe I owe you a beer. That was the solution. I didn't even realize time.h wasn't there. Thanks again >> time (&t); >> printf ("%s\n ", ctime (&t) + 4); >> >I'd bet a beer you don't include time.h and so get a prototype for ctime(). > >With no prototype, the compiler, by law, must assume ctime returns an int, >and so the 64-bit pointer gets truncated to 32 bits. gcc -Wall should >warn you about using an integral type where a pointer is expected in the >printf format. > > >r~ > -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null