diff options
author | Bruce Momjian | 2002-07-16 05:46:36 +0000 |
---|---|---|
committer | Bruce Momjian | 2002-07-16 05:46:36 +0000 |
commit | 3cbb9eb2650bd39997e1bd1236622e1d7260c978 (patch) | |
tree | ae9c67debdd04950664dcf47114ec818e92bab60 /src/utils/strdup.c | |
parent | d76eef3e7cca5165941a5ef08e71f6a7c722b7bd (diff) |
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.
Diffstat (limited to 'src/utils/strdup.c')
-rw-r--r-- | src/utils/strdup.c | 26 |
1 files changed, 0 insertions, 26 deletions
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 <string.h> -#include <stdlib.h> -#include "strdup.h" - -char * -strdup(char const * string) -{ - char *nstr; - - nstr = strcpy((char *) malloc(strlen(string) + 1), string); - return nstr; -} |