On Sat, Jan 26, 2002 at 09:30:00PM +0000, Niall O Broin wrote:
> OK - this tiny program
cc -Wall and lclint are now both quiet about this program. this is on
redhat 6.2 and openbsd 3.0. i don't have suse, sorry. when will you
use a real distribution? :) oh, and it runs too (remember, just cause
it compiles doesn't mean it works).
------------ snip
#include <stdio.h>
#include <time.h>
int
main(/*@unused@*/ int argc, /*@unused@*/ char *argv[])
{
struct tm *tp;
time_t now;
(void)time(&now);
tp = localtime(&now);
printf("tm_isdst = %d\n", tp? tp->tm_isdst: -99);
exit(0);
/*@notreached@*/
return 0;
}
------------ snip
kevin
--
kevin at suberic.net buffy: come on, can't you put your foot down?!
fork()'ed on 37058400 giles: it *is* down.
meatspace place: orbit buffy: one of these days you're going to have to
http://suberic.net/~kevin get a grown up car. --inca mummy girl
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!