Files
heimdal/lib/roken/strdup.c
Björn Groenvall 3de3be0287 Fix linkage typeo, should not be static.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@84 ec53bebd-3082-4978-b11e-865c3cabbd6b
1995-08-26 13:50:42 +00:00

13 lines
161 B
C

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