Sign in
third-party-mirror
/
mingw-w64
/
9e80f9b2ffdc6d5cef36f6fd74881ae8e1d39b88
/
.
/
mingw-w64-crt
/
testcases
/
t_intrinc.c
blob: 000a77e68f37a3346b97a788dee14ba77d97186d [
file
] [
log
] [
blame
]
#include
<windows.h>
#include
<stdio.h>
int
main
()
{
LONG poop
=
0
;
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
printf
(
"[%02I32d]\n"
,
InterlockedIncrement
(&
poop
));
}
for
(
int
j
=
0
;
j
<
5
;
++
j
)
{
printf
(
"[%02I32d]\n"
,
InterlockedDecrement
(&
poop
));
}
}