diff options
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; -} |