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