equal
deleted
inserted
replaced
42 |
42 |
43 #include <stdio.h> |
43 #include <stdio.h> |
44 |
44 |
45 int main(int argc, char ** argv) |
45 int main(int argc, char ** argv) |
46 { |
46 { |
47 #if defined(__SYMBIAN32__) |
47 #if defined(__SYMBIAN32__) || defined(WINCE) || defined(_WIN32_WCE) |
|
48 # if defined(__SYMBIAN32__) |
48 // Printing to stdout messes up the out.txt, so open a file and print there. |
49 // Printing to stdout messes up the out.txt, so open a file and print there. |
49 FILE* file = fopen("c:\\logs\\qprocess_args_test.txt","w+"); |
50 FILE* file = fopen("c:\\logs\\qprocess_args_test.txt","w+"); |
|
51 # else |
|
52 // No pipes on this "OS" |
|
53 FILE* file = fopen("\\temp\\qprocess_args_test.txt","w+"); |
|
54 # endif |
50 for (int i = 0; i < argc; ++i) { |
55 for (int i = 0; i < argc; ++i) { |
51 if (i) |
56 if (i) |
52 fprintf(file, "|"); |
57 fprintf(file, "|"); |
53 fprintf(file, argv[i]); |
58 fprintf(file, argv[i]); |
54 } |
59 } |