From 2f209e7d2884f9658a996adeb896233db9fecdad Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Mon, 15 Feb 2016 16:00:37 -0800 Subject: kill libiberty --- libiberty/xstrdup.c | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 libiberty/xstrdup.c (limited to 'libiberty/xstrdup.c') 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; -} -- cgit v1.2.3