Remove the encoding *numbers* from the comments. They are useless, and
[PostgreSQL.git] / src / port / strdup.c
blob43be9f102c4c50ac1ca6e0028707d5e6f2dc7aab
1 /*-------------------------------------------------------------------------
3 * strdup.c
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
10 * IDENTIFICATION
11 * $PostgreSQL$
13 *-------------------------------------------------------------------------
16 #include "c.h"
19 char *
20 strdup(const char *string)
22 char *nstr;
24 nstr = (char *) malloc(strlen(string) + 1);
25 if (nstr)
26 strcpy(nstr, string);
27 return nstr;