You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
436 B
23 lines
436 B
#include <stdio.h>
|
|
|
|
extern int testExe1lib(void);
|
|
|
|
int main(int argc, const char* argv[])
|
|
{
|
|
if (argc < 2) {
|
|
fprintf(stderr, "Must specify output file.\n");
|
|
return 1;
|
|
}
|
|
{
|
|
FILE* f = fopen(argv[1], "w");
|
|
if (f) {
|
|
fprintf(f, "int generated_by_testExe1() { return 0; }\n");
|
|
fclose(f);
|
|
} else {
|
|
fprintf(stderr, "Error writing to %s\n", argv[1]);
|
|
return 1;
|
|
}
|
|
}
|
|
return testExe1lib();
|
|
}
|