TZIVI-254: IVI needs a newer version of cmake
[profile/ivi/cmake.git] / Tests / Wrapping / fakefluid.cxx
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        strcmp(av[i], "-h") == 0)
9       {
10       fprintf(stdout, "fakefluid is creating file \"%s\"\n", av[i+1]);
11       FILE* file = fopen(av[i+1], "w");
12       fprintf(file, "// hello\n");
13       fclose(file);
14       }
15     }
16   return 0;
17 }