summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 8122939b6..a1cacc86c 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -124,6 +124,18 @@ extern "C"
#endif
};
+#ifdef DEBUGGING
+void __stdcall
+envvar ()
+{
+ const char *s = "PATH";
+ char buf[4096];
+ Sleep (500);
+ small_printf ("%d = GetEnvironmentVariable (\"%s\")\n", GetEnvironmentVariable (s, buf, sizeof buf), s);
+ small_printf ("value = '%s'\n", buf);
+}
+#endif
+
char *old_title;
char title_buf[TITLESIZE + 1];