/*
 * Libraries and headers for PDC release 3.3 (C) 1989 Lionel D. Hummel.
 * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
 * PDC I/O Library (C) 1987 by J.A. Lydiatt.
 *
 * This code is freely redistributable upon the conditions that this notice
 * remains intact and that modified versions of this file not be included
 * as part of the PDC Software Distribution without the express consent of
 * the copyright holders.
 */

/* Modified for Amiga GCC by Ray Burr (added include) */

#include <stdlib.h>

/*
 *    strdup.c
 *
 *    strdup() returns a duplicate string that can be safely modified
 */

char *strdup(string)
char *string;
{
    char *retval;

    retval = malloc(strlen(string)+1);

    if (retval != 0L)
        strcpy(retval, string);

    return(retval);
}
