summaryrefslogtreecommitdiff
path: root/libiberty/xstrdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/xstrdup.c')
-rwxr-xr-xlibiberty/xstrdup.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/libiberty/xstrdup.c b/libiberty/xstrdup.c
deleted file mode 100755
index 9d08bc7..0000000
--- a/libiberty/xstrdup.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* xstrdup.c -- Duplicate a string in memory, using xmalloc.
- This trivial function is in the public domain.
- Ian Lance Taylor, Cygnus Support, December 1995. */
-
-#include "ansidecl.h"
-#include "libiberty.h"
-
-char *
-xstrdup (s)
- const char *s;
-{
- char *ret;
-
- ret = xmalloc (strlen (s) + 1);
- strcpy (ret, s);
- return ret;
-}