aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/echo.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-15 17:27:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-15 17:27:29 +0300
commitb2436ef9390b9dddb9c010eec5caca40400f8c8b (patch)
tree43c356dfeb5060066b4bd4b64ea06b1615a07f85 /test/echo.cpp
parentWIP: add simple Process class (diff)
downloadwinapi-common-b2436ef9390b9dddb9c010eec5caca40400f8c8b.tar.gz
winapi-common-b2436ef9390b9dddb9c010eec5caca40400f8c8b.zip
rename utility "args" to "echo"
Diffstat (limited to 'test/echo.cpp')
-rw-r--r--test/echo.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/echo.cpp b/test/echo.cpp
new file mode 100644
index 0000000..6d6e6df
--- /dev/null
+++ b/test/echo.cpp
@@ -0,0 +1,15 @@
+// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
+// This file is part of the "winapi-common" project.
+// For details, see https://github.com/egor-tensin/winapi-common.
+// Distributed under the MIT License.
+
+// Simple UTF-16 echo.
+
+#include <iostream>
+
+int wmain(int argc, wchar_t* argv[]) {
+ for (int i = 1; i < argc; ++i) {
+ std::wcout << argv[i] << L'\n';
+ }
+ return 0;
+}