Files
heimdal/lib/roken/strdup.c
Björn Groenvall 4eac32e222 More uses of RCSID() in lib/* and appl/bsd.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@178 ec53bebd-3082-4978-b11e-865c3cabbd6b
1995-10-24 14:03:21 +00:00

15 lines
181 B
C

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