diff options
Diffstat (limited to 'libopts/compat/strdup.c')
-rw-r--r-- | libopts/compat/strdup.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libopts/compat/strdup.c b/libopts/compat/strdup.c deleted file mode 100644 index e2933a8afd40..000000000000 --- a/libopts/compat/strdup.c +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Platforms without strdup ?!?!?! - */ - -static char * -strdup( char const *s ) -{ - char *cp; - - if (s == NULL) - return NULL; - - cp = (char *) AGALOC((unsigned) (strlen(s)+1), "strdup"); - - if (cp != NULL) - (void) strcpy(cp, s); - - return cp; -} |