CMake/Tests/Wrapping/Wrap.c

18 lines
289 B
C
Raw Normal View History

#include <stdio.h>
int main(int argc, const 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;
}