ReactOS
0.4.16-dev-1012-g3fe4b41
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
mktime.c
Go to the documentation of this file.
1
2
#include <stdio.h>
3
#include <time.h>
4
5
struct
tm
time_str
;
6
7
char
daybuf
[20];
8
9
int
main
(
void
)
10
{
11
printf
(
"Testing mktime() by asking\n"
);
12
printf
(
"What day of the week is July 4, 2001?\n"
);
13
14
time_str
.tm_year = 2001 - 1900;
15
time_str
.tm_mon = 7 - 1;
16
time_str
.tm_mday = 4;
17
time_str
.tm_hour = 0;
18
time_str
.tm_min = 0;
19
time_str
.tm_sec = 1;
20
time_str
.tm_isdst = -1;
21
if
(
mktime
(&
time_str
) == -1)
22
(
void
)
puts
(
"-unknown-"
);
23
else
{
24
(
void
)
strftime
(
daybuf
,
sizeof
(
daybuf
),
"%A"
, &
time_str
);
25
(
void
)
puts
(
daybuf
);
26
}
27
return
0;
28
}
29
puts
int puts(const char *string)
Definition:
crtsupp.c:23
printf
#define printf
Definition:
freeldr.h:97
void
Definition:
nsiface.idl:2307
daybuf
char daybuf[20]
Definition:
mktime.c:7
main
int main(void)
Definition:
mktime.c:9
time_str
struct tm time_str
Definition:
mktime.c:5
mktime
_CRTIMP time_t __cdecl mktime(struct tm *_Tm)
Definition:
time.h:418
strftime
size_t CDECL strftime(char *str, size_t max, const char *format, const struct tm *mstm)
Definition:
strftime.c:294
tm
Definition:
time.h:68
modules
rostests
tests
mktime
mktime.c
Generated on Sat Apr 19 2025 06:15:37 for ReactOS by
1.9.6