/*
 * strdup: return a duplicate of a string
 * Written by Eric R. Smith and placed in the public domain.
 */

#include <stdlib.h>
#include <string.h>
#undef strdup
#undef __strdup

char *
__strdup(const char *s)
{
	char *dup;

	dup = (char *) malloc(strlen(s)+1);
	if (dup)
		strcpy(dup, s);
	return dup;
}
weak_alias (__strdup, strdup)
