Back to index

glibc  2.9
bug-mktime1.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <time.h>
00003 
00004 
00005 static int
00006 do_test (void)
00007 {
00008   struct tm t2 = { 0, 0, 0, 1, 1, 2050 - 1900, 1, 1, 1 };
00009   time_t tt2 = mktime (&t2);
00010   printf ("%ld\n", (long int) tt2);
00011   if (sizeof (time_t) == 4 && tt2 != -1)
00012     return 1;
00013   return 0;
00014 }
00015 
00016 #define TEST_FUNCTION do_test ()
00017 #include "../test-skeleton.c"