From 77e876615da5f1482b225bd4f754b9fefcd52cec Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 27 Jul 2000 09:49:34 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/strdup.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 missing/strdup.c (limited to 'missing/strdup.c') diff --git a/missing/strdup.c b/missing/strdup.c deleted file mode 100644 index 2e1fe90bbd..0000000000 --- a/missing/strdup.c +++ /dev/null @@ -1,25 +0,0 @@ -/************************************************ - - strdup.c - - - $Author$ - $Date$ - created at: Wed Dec 7 15:34:01 JST 1994 - -************************************************/ -#include - -char * -strdup(str) - char *str; -{ - extern char *xmalloc(); - char *tmp; - int len = strlen(str) + 1; - - tmp = xmalloc(len); - if (tmp == NULL) return NULL; - memcpy(tmp, str, len); - - return tmp; -} -- cgit v1.2.3