aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Henderson <bryanh@giraffe.netgate.net>1996-11-27 01:46:52 +0000
committerBryan Henderson <bryanh@giraffe.netgate.net>1996-11-27 01:46:52 +0000
commit89c7e18b3f890543df161bcab1c4fdbbc420c785 (patch)
tree5ac2812a95c64c5c1729618124f5327c045811ff
parent8cfe27dff005bbc786905fc530e7dcb16dd1f18c (diff)
downloadpostgresql-89c7e18b3f890543df161bcab1c4fdbbc420c785.tar.gz
postgresql-89c7e18b3f890543df161bcab1c4fdbbc420c785.zip
Forgot in yesterday's Ultrix compile work.
-rw-r--r--src/utils/strdup.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/utils/strdup.c b/src/utils/strdup.c
new file mode 100644
index 00000000000..a59cc505784
--- /dev/null
+++ b/src/utils/strdup.c
@@ -0,0 +1,24 @@
+/*-------------------------------------------------------------------------
+ *
+ * strdup.c--
+ * copies a null-terminated string.
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ *
+ * IDENTIFICATION
+ * $Header: /cvsroot/pgsql/src/utils/Attic/strdup.c,v 1.1 1996/11/27 01:46:52 bryanh Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
+#include <string.h>
+#include "strdup.h"
+
+char *
+strdup(char *string)
+{
+ char *nstr;
+
+ nstr = strcpy((char *)palloc(strlen(string)+1), string);
+ return nstr;
+}