diff options
-rwxr-xr-x | win32/contrib/setenv.c | 19 |
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); - } -} |