fakefluid.cxx 284 B

12345678910111213141516
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main(int ac, char** av)
  4. {
  5. for(int i =0; i < ac; ++i)
  6. {
  7. if(strcmp(av[i], "-o") == 0)
  8. {
  9. FILE* file = fopen(av[i+1], "w");
  10. fprintf(file, "// hello\n");
  11. fclose(file);
  12. return 0;
  13. }
  14. }
  15. return 0;
  16. }