repo.or.cz
/
cmake.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git]
/
Tests
/
MakeClean
/
check_clean.c.in
blob
5bc4ab88072cc983f2a23ef624bba33d949ad6d1
1
#include <stdio.h>
2
3
int
main
()
4
{
5
/* The list of files to check. */
6
const char
*
files
[] =
7
{
8
@CHECK_FILES@
9
0
10
};
11
12
/* No file should exist. */
13
const char
**
f
=
files
;
14
int
result
=
0
;
15
for
(; *
f
; ++
f
)
16
{
17
FILE
*
pf
=
fopen
(*
f
,
"rb"
);
18
if
(
pf
)
19
{
20
fclose
(
pf
);
21
fprintf
(
stderr
,
"File
\"
%s
\"
exists!"
, *
f
);
22
result
=
1
;
23
}
24
}
25
return
result
;
26
}