2008-01-28 16:40:21 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2008-02-03 16:57:58 +03:00
|
|
|
extern int testExe1lib(void);
|
2008-01-28 21:37:59 +03:00
|
|
|
|
2008-01-28 16:40:21 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2008-01-28 21:37:59 +03:00
|
|
|
return testExe1lib();
|
2008-01-28 16:40:21 +03:00
|
|
|
}
|