diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-03 20:43:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-03 20:43:25 +0000 |
commit | fd23647a99647173a1264a0cda9bdbc01021f7f3 (patch) | |
tree | cfd683c20e17237db7923e29670580b4affe002d /gnu/lib/libg++/libiberty/xstrdup.c | |
parent | c6737b9901665282ea4632c2ff0016c923a3eeca (diff) |
Files from libg++ 2.8.0 that cvs erroneously placed in the trunk.
Diffstat (limited to 'gnu/lib/libg++/libiberty/xstrdup.c')
-rw-r--r-- | gnu/lib/libg++/libiberty/xstrdup.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gnu/lib/libg++/libiberty/xstrdup.c b/gnu/lib/libg++/libiberty/xstrdup.c deleted file mode 100644 index 9d08bc70405..00000000000 --- a/gnu/lib/libg++/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; -} |