aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/ultrix4/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/port/ultrix4/strdup.c')
-rw-r--r--src/backend/port/ultrix4/strdup.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/backend/port/ultrix4/strdup.c b/src/backend/port/ultrix4/strdup.c
new file mode 100644
index 00000000000..f140711226e
--- /dev/null
+++ b/src/backend/port/ultrix4/strdup.c
@@ -0,0 +1,23 @@
+/*-------------------------------------------------------------------------
+ *
+ * strdup.c--
+ * copies a null-terminated string.
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ *
+ * IDENTIFICATION
+ * $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/strdup.c,v 1.1.1.1 1996/07/09 06:21:45 scrappy Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
+#include <string.h>
+
+char *
+strdup(char *string)
+{
+ char *nstr;
+
+ nstr = strcpy((char *)palloc(strlen(string)+1), string);
+ return nstr;
+}