mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05:00
18 lines
282 B
C
18 lines
282 B
C
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
FILE* fout = fopen(argv[argc-1], "w");
|
|
printf("Wrap creating \"%s\"\n", argv[argc-1]);
|
|
if(fout)
|
|
{
|
|
fprintf(fout, "int foo() { return 0; }\n");
|
|
fclose(fout);
|
|
}
|
|
else
|
|
{
|
|
return -1;
|
|
}
|
|
return 0;
|
|
}
|