Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-27 09:12:09 +0400
committerChristopher Faylor <me@cgf.cx>2000-09-27 09:12:09 +0400
commite564846577d119c0684ccd3afa8d0103f22160e6 (patch)
tree6b990beb20010ab2de2893d5e4073f284f3afc3a /winsup/cygwin/cygheap.cc
parent03de9775c4a0b867ee6095f462fad959213a0ea7 (diff)
* spawn.cc (spawn_guts): Attempt to accomodate archaic windows quoting
mechanism when dealing with '\' and '"'.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index d8e13331b..132b230c2 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -235,3 +235,13 @@ cstrdup (const char *s)
strcpy (p, s);
return p;
}
+
+extern "C" char *__stdcall
+cstrdup1 (const char *s)
+{
+ char *p = (char *) cmalloc (HEAP_1_STR, strlen (s) + 1);
+ if (!p)
+ return NULL;
+ strcpy (p, s);
+ return p;
+}