/* * $Id: strdup.c,v 1.4 2003-02-17 01:51:08 srittau Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ #include #include #include #ifdef ultrix char *strdup(const char *string) { char *new; if (new = (char *) malloc(strlen(string) + 1)) strcpy(new, string); return new; } #endif /* ultrix */