[ILUG] C compilation error

Nick Murtagh murtaghn at tcd.ie
Sat Jan 26 21:53:42 GMT 2002


On Saturday 26 January 2002 21:30, you wrote:
> OK - this tiny program
>
> ---------------------
> #include <sys/time.h>
>
> main() {
>   struct tm *tp;
>
>   tp = localtime();
>   tp->tm_isdst;
> }
> ---------------------

What exactly is localtime() supposed to do? As far as i can tell
localtime takes a parameter of type time_t. What about 

  tp = localtime(time());




More information about the ILUG mailing list