You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
374 B
18 lines
374 B
#include <stdio.h>
|
|
#include <string.h>
|
|
int main(int ac, char** av)
|
|
{
|
|
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");
|
|
fprintf(file, "// hello\n");
|
|
fclose(file);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|