Files
XCTerminal/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc
2026-03-21 20:26:20 +08: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;
}