Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / ExportImport / Export / testExe3.c
blob895e2fc2d06b098ce5a2674951c62c3e0fb1631f
1 #include <stdio.h>
3 int main(int argc, const char* argv[])
5 if(argc < 2)
7 fprintf(stderr, "Must specify output file.\n");
8 return 1;
11 FILE* f = fopen(argv[1], "w");
12 if(f)
14 fprintf(f, "int generated_by_testExe3() { return 0; }\n");
15 fclose(f);
17 else
19 fprintf(stderr, "Error writing to %s\n", argv[1]);
20 return 1;
23 return 0;