diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-27 09:49:34 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-27 09:49:34 +0000 |
commit | f828756f01c8c6221ad2f5e051c708fb309406c9 (patch) | |
tree | 27bc06133685cb3d4bcb75cfc81b3cda6cdf8e04 /missing | |
parent | 4257651cd250a58f3dbfa495d1218f91da477f5e (diff) | |
download | ruby-f828756f01c8c6221ad2f5e051c708fb309406c9.tar.gz ruby-f828756f01c8c6221ad2f5e051c708fb309406c9.tar.xz ruby-f828756f01c8c6221ad2f5e051c708fb309406c9.zip |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r-- | missing/strdup.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/missing/strdup.c b/missing/strdup.c deleted file mode 100644 index 2e1fe90bb..000000000 --- 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 <stdio.h> - -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; -} |