2006-01-09 22:40:31 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
int main(int ac, char** av)
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
for (int i = 0; i < ac; ++i) {
|
|
|
|
if (strcmp(av[i], "-o") == 0 || strcmp(av[i], "-h") == 0) {
|
|
|
|
fprintf(stdout, "fakefluid is creating file \"%s\"\n", av[i + 1]);
|
|
|
|
FILE* file = fopen(av[i + 1], "w");
|
2006-01-09 22:40:31 +03:00
|
|
|
fprintf(file, "// hello\n");
|
|
|
|
fclose(file);
|
|
|
|
}
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2006-01-09 22:40:31 +03:00
|
|
|
return 0;
|
|
|
|
}
|