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
BUG: Fix find_* search order with path suffixes
[cmake.git]
/
Tests
/
Wrapping
/
Wrap.c
blob
0a1ff501e815b527d9829c5d94d5f4030bee4091
1
#include <stdio.h>
2
3
#ifdef __CLASSIC_C__
4
int
main
(
argc
,
argv
)
5
int
argc
;
6
char
**
argv
;
7
#else
8
int
main
(
int
argc
,
const char
*
argv
[])
9
#endif
10
{
11
FILE
*
fout
=
fopen
(
argv
[
argc
-
1
],
"w"
);
12
printf
(
"Wrap creating
\"
%s
\"\n
"
,
argv
[
argc
-
1
]);
13
if
(
fout
)
14
{
15
fprintf
(
fout
,
"int foo() { return 0; }
\n
"
);
16
fclose
(
fout
);
17
}
18
else
19
{
20
return
-
1
;
21
}
22
return
0
;
23
}