installed pty
[VSoRC/.git] / node_modules / node-pty / deps / winpty / misc / ShowArgv.cc
diff --git a/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc b/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc
new file mode 100644 (file)
index 0000000..29a0f09
--- /dev/null
@@ -0,0 +1,12 @@
+// 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;
+}