From 3cbb9eb2650bd39997e1bd1236622e1d7260c978 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 16 Jul 2002 05:46:36 +0000 Subject: Move few remaining src/utils files to backend/port so everything is in one place. Everything may be moved to src/utils eventually. Add DLLINIT variable to simplify makfiles. --- src/utils/strdup.c | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/utils/strdup.c (limited to 'src/utils/strdup.c') diff --git a/src/utils/strdup.c b/src/utils/strdup.c deleted file mode 100644 index 35400459127..00000000000 --- a/src/utils/strdup.c +++ /dev/null @@ -1,26 +0,0 @@ -/*------------------------------------------------------------------------- - * - * strdup.c - * copies a null-terminated string. - * - * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * - * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/utils/Attic/strdup.c,v 1.9 2002/06/20 20:29:54 momjian Exp $ - * - *------------------------------------------------------------------------- - */ -#include -#include -#include "strdup.h" - -char * -strdup(char const * string) -{ - char *nstr; - - nstr = strcpy((char *) malloc(strlen(string) + 1), string); - return nstr; -} -- cgit v1.2.3