| 1 |
// This test program is useful for studying commandline<->argv conversion. |
| 2 |
|
| 3 |
#include <stdio.h> |
| 4 |
#include <windows.h> |
| 5 |
|
| 6 |
int main(int argc, char **argv) |
| 7 |
{ |
| 8 |
printf("cmdline = [%s]\n", GetCommandLine()); |
| 9 |
for (int i = 0; i < argc; ++i) |
| 10 |
printf("[%s]\n", argv[i]); |
| 11 |
return 0; |
| 12 |
} |