CMake/Tests/Wrapping/Wrap.c

18 lines
282 B
C
Raw Normal View History

#include <stdio.h>
2006-06-03 17:42:14 +04:00
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;
}