Files
heimdal/lib/roken/strdup.c
Assar Westerlund b0f6df58d7 Added lots of Id:s
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@689 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-26 22:48:24 +00:00

18 lines
242 B
C

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