Files
heimdal/lib/roken/strdup.c
Björn Groenvall c3a717684c Change $Header to $Id
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@209 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-01-02 15:55:57 +00:00

15 lines
177 B
C

#include "bsd_locl.h"
RCSID("$Id$");
#ifndef HAVE_STRDUP
char *
strdup(const char *old)
{
char *t = malloc(strlen(old)+1);
if (t != 0)
strcpy(t, old);
return t;
}
#endif