2003-07-30 21:11:04 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2006-06-03 17:48:39 +04:00
|
|
|
#ifdef __CLASSIC_C__
|
2016-05-16 17:34:04 +03:00
|
|
|
int main(argc, argv) int argc;
|
|
|
|
char** argv;
|
2006-06-03 17:48:39 +04:00
|
|
|
#else
|
|
|
|
int main(int argc, const char* argv[])
|
|
|
|
#endif
|
2003-07-30 21:11:04 +04:00
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
FILE* fout = fopen(argv[argc - 1], "w");
|
|
|
|
printf("Wrap creating \"%s\"\n", argv[argc - 1]);
|
|
|
|
if (fout) {
|
2006-06-02 20:19:16 +04:00
|
|
|
fprintf(fout, "int foo() { return 0; }\n");
|
|
|
|
fclose(fout);
|
2016-05-16 17:34:04 +03:00
|
|
|
} else {
|
2006-06-02 20:19:16 +04:00
|
|
|
return -1;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2003-07-30 21:11:04 +04:00
|
|
|
return 0;
|
|
|
|
}
|