winpty/misc/ShowArgv.cc
2012-04-01 02:13:21 -07:00

13 lines
287 B
C++

// 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;
}