Files
heimdal/lib/roken/strdup.c
Björn Groenvall 832ea1cfb1 Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@83 ec53bebd-3082-4978-b11e-865c3cabbd6b
1995-08-26 12:40:32 +00:00

13 lines
168 B
C

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