File size: 287 Bytes
19605ab
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
// This test program is useful for studying commandline<->argv conversion.

#include <stdio.h>
#include <windows.h>

int main(int argc, char **argv)
{
    printf("cmdline = [%s]\n", GetCommandLine());
    for (int i = 0; i < argc; ++i)
        printf("[%s]\n", argv[i]);
    return 0;
}