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