Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / ExportImport / Export / testExe1.c
blob8ac154fdfc99a1e505ee99164f7f666be7b6b2ab
1 #include <stdio.h>
3 extern int testExe1lib();
5 int main(int argc, const char* argv[])
7 if(argc < 2)
9 fprintf(stderr, "Must specify output file.\n");
10 return 1;
13 FILE* f = fopen(argv[1], "w");
14 if(f)
16 fprintf(f, "int generated_by_testExe1() { return 0; }\n");
17 fclose(f);
19 else
21 fprintf(stderr, "Error writing to %s\n", argv[1]);
22 return 1;
25 return testExe1lib();