repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
time
/
mktime
/
mktime.c
blob
5ab2229ce99041e0138bb4e8d936dacce0ebef99
1
#include <err.h>
2
#include <errno.h>
3
#include <string.h>
4
#include <time.h>
5
6
int
7
main
(
void
)
8
{
9
time_t
rc
;
10
struct
tm tms
;
11
12
(
void
)
memset
(&
tms
,
0
,
sizeof
(
tms
));
13
tms
.
tm_year
= ~
0
;
14
15
errno
=
0
;
16
rc
=
mktime
(&
tms
);
17
18
if
(
errno
!=
0
)
19
errx
(
1
,
"mktime(): errno was %d"
,
errno
);
20
21
return
0
;
22
}