summaryrefslogtreecommitdiff
path: root/libexec/ld.so/strdup.c
blob: e7737d39e673c1bf67f5a0ec684f2dfed52c241a (plain)
1
2
3
4
5
6
7
8
9
10
11
12

void * _dl_malloc(int);

char *
_dl_strdup(const char *orig)
{
	char *newstr;
	newstr = _dl_malloc(strlen(orig)+1);
	strcpy(newstr, orig);
	return (newstr);
}