[ILUG] C compilation error

kevin lyda kevin at suberic.net
Sat Jan 26 22:19:51 GMT 2002


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




More information about the ILUG mailing list