1 /*-------------------------------------------------------------------------
4 * copies a null-terminated string.
6 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
13 *-------------------------------------------------------------------------
20 strdup(const char *string
)
24 nstr
= (char *) malloc(strlen(string
) + 1);