Commit 89c7e18b authored by Bryan Henderson's avatar Bryan Henderson

Forgot in yesterday's Ultrix compile work.

parent 8cfe27df
/*-------------------------------------------------------------------------
*
* strdup.c--
* copies a null-terminated string.
*
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/utils/Attic/strdup.c,v 1.1 1996/11/27 01:46:52 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
#include <string.h>
#include "strdup.h"
char *
strdup(char *string)
{
char *nstr;
nstr = strcpy((char *)palloc(strlen(string)+1), string);
return nstr;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment