summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-02 15:57:18 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-02 15:57:18 +0000
commit4e4b377a8e8573961709002421d91afd37e3a9e0 (patch)
treec05b5317bd0b486853e97d4c00bf33859ec7ebdb /util.c
parent5eccd28bb30b5ebdc57ded504a27fbf488a65050 (diff)
2000-07-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/util.c b/util.c
index a886067..7d91299 100644
--- a/util.c
+++ b/util.c
@@ -126,24 +126,6 @@ check_dir(dir)
return dir;
}
-char *
-ruby_mktemp()
-{
- char *dir;
- char *buf;
-
- dir = check_dir(getenv("TMP"));
- if (!dir) dir = check_dir(getenv("TMPDIR"));
- if (!dir) dir = "/tmp";
-
- buf = ALLOC_N(char,strlen(dir)+10);
- sprintf(buf, "%s/rbXXXXXX", dir);
- dir = mktemp(buf);
- if (dir == NULL) free(buf);
-
- return dir;
-}
-
#if defined(MSDOS) || defined(__CYGWIN32__) || defined(NT)
/*
* Copyright (c) 1993, Intergraph Corporation