Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@83 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
12
lib/roken/strdup.c
Normal file
12
lib/roken/strdup.c
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#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
|
Reference in New Issue
Block a user