#ifndef lint
static char *RCSid = "/src/master/rdist/src/strdup.c,v 1.1.1.1 1995/01/20 02:44:44 seth Exp";
#endif

/*
 * strdup.c,v
 * Revision 1.1.1.1  1995/01/20  02:44:44  seth
 * Rdist from usc.edu
 *
 * Revision 1.2  1992/04/16  01:28:02  mcooper
 * Some de-linting.
 *
 * Revision 1.1  1992/03/21  02:48:11  mcooper
 * Initial revision
 *
 */


#include <stdio.h>

/*
 * Most systems don't have this (yet)
 */
char *strdup(str)
     char *str;
{
    char 		       *p;
    extern char		       *malloc();
    extern char		       *strcpy();

    if ((p = malloc(strlen(str)+1)) == NULL)
	return((char *) NULL);

    (void) strcpy(p, str);

    return(p);
}
