summaryrefslogtreecommitdiff
path: root/win32/contrib/setenv.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2004-12-25 23:00:14 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2004-12-25 23:00:14 +0000
commitd8bce207659a84747a727888a0bef97dfb192dd5 (patch)
tree3e06708a5ccbfffa35ad220db1903b7051790f3c /win32/contrib/setenv.c
parentf4af7a77078f3a3356de3bbeb3275dab767dae5d (diff)
downloadxine-lib-d8bce207659a84747a727888a0bef97dfb192dd5.tar.gz
xine-lib-d8bce207659a84747a727888a0bef97dfb192dd5.tar.bz2
remove useless file
CVS patchset: 7303 CVS date: 2004/12/25 23:00:14
Diffstat (limited to 'win32/contrib/setenv.c')
-rwxr-xr-xwin32/contrib/setenv.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/win32/contrib/setenv.c b/win32/contrib/setenv.c
deleted file mode 100755
index ffd85f872..000000000
--- a/win32/contrib/setenv.c
+++ /dev/null
@@ -1,19 +0,0 @@
-
-#include <xinesuppt.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-/* This function will leak a small amount of memory */
-void setenv(const char *name, const char *val, int _xx)
-{
- int len = strlen(name) + strlen(val) + 2;
- char *env = malloc(len);
-
- if (env != NULL) {
- strcpy(env, name);
- strcat(env, "=");
- strcat(env, val);
- putenv(env);
- }
-}