No empty .Rs/.Re
[netbsd-mini2440.git] / regress / lib / libc / time / mktime / mktime.c
blob5ab2229ce99041e0138bb4e8d936dacce0ebef99
1 #include <err.h>
2 #include <errno.h>
3 #include <string.h>
4 #include <time.h>
6 int
7 main(void)
9 time_t rc;
10 struct tm tms;
12 (void)memset(&tms, 0, sizeof(tms));
13 tms.tm_year = ~0;
15 errno = 0;
16 rc = mktime(&tms);
18 if (errno != 0)
19 errx(1, "mktime(): errno was %d", errno);
21 return 0;