diff options
Diffstat (limited to 'src/port/strdup.c')
-rw-r--r-- | src/port/strdup.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/port/strdup.c b/src/port/strdup.c deleted file mode 100644 index ea6716cc0d6..00000000000 --- a/src/port/strdup.c +++ /dev/null @@ -1,28 +0,0 @@ -/*------------------------------------------------------------------------- - * - * strdup.c - * copies a null-terminated string. - * - * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * - * IDENTIFICATION - * src/port/strdup.c - * - *------------------------------------------------------------------------- - */ - -#include "c.h" - - -char * -strdup(const char *string) -{ - char *nstr; - - nstr = (char *) malloc(strlen(string) + 1); - if (nstr) - strcpy(nstr, string); - return nstr; -} |