#include <stdlib.h>
char *strdup(string)
char *string;
{
  char *new;
  if (string == NULL)
    return (NULL);
  else
    if ((new = malloc(strlen(string)+1)) == NULL)
      return (NULL);
    else{
      strcpy(new, string);
      return (new);
    }
}
