Wrap.c 282 B

1234567891011121314151617
  1. #include <stdio.h>
  2. int main(int argc, char** argv)
  3. {
  4. FILE* fout = fopen(argv[argc-1], "w");
  5. printf("Wrap creating \"%s\"\n", argv[argc-1]);
  6. if(fout)
  7. {
  8. fprintf(fout, "int foo() { return 0; }\n");
  9. fclose(fout);
  10. }
  11. else
  12. {
  13. return -1;
  14. }
  15. return 0;
  16. }